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 r){ 17 this.runnable = r; 18 } 19 private final Runnable runnable; 20 public void start(){ 21 new Thread(runnable).start(); 22 } 23 } 24