KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > models > MyThread


1 /*
2  * Created on 2005-1-17
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package tests.jfun.models;
8
9 /**
10  * @author Michelle
11  *
12  * TODO To change the template for this generated type comment go to
13  * Window - Preferences - Java - Code Style - Code Templates
14  */

15 public final class MyThread {
16     public MyThread(final Runnable JavaDoc r){
17         this.runnable = r;
18     }
19     private final Runnable JavaDoc runnable;
20     public void start(){
21         new Thread JavaDoc(runnable).start();
22     }
23 }
24
Popular Tags