package thread;
public class ImplementThread {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Printer p = new Printer(" Good");
Thread t = new Thread(p);
t.start();
}
}
class Printer implements Runnable {
private String message;
public Printer(String message) {
this.message = message;
}
public void run() {
for(int i=0; i<10000; i++) {
System.out.println(this.message);
}
}
}