How to use threads in Java SE
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/857735/understanding-threads">Understanding Threads</a>  </p>
</blockquote>



<p>I have a public class that is implementing a Runnable interface.
So how and where will I use the thread in this class?</p>

<pre><code>public class Main implements Runnable {
Thread trun;
public static void looper() {
    for(int i = 0; i &lt; 100; i++) {
        System.out.println(i);
    }
}
public static void main(String[] args) {
    looper();
}

}
</code></pre>
