previous
|
start
|
next
Running a Thread
Create an object of your subclass
Runnable r = new MyRunnable();
Construct a
Thread
object from the runnable object.
Thread t = new Thread(r);
Call the
start
method to start the thread.
t.start();
previous
|
start
|
next