Implementing Runnable
class MyThread implements Runnable {
MyThread() {
}
public void run() {
// Loop forever...?
}
public static void main(String[] args) {
Thread mythread = new Thread(new MyThread());
mythread.start();
mythread.stop();
}
}
Previous slide
Next slide
Back to first slide
View graphic version