So this doesn't compile, right?
I think you're a little confused about how to create and run a
thread. Let me try to re-write this:
Try that.
In order to create a new thread, you need to create an object of
type Thread. One of the constructors for a Thread object takes a Runnable object, so you'll pass an instance of the newthread object, which implements runnable.
Then, you can go ahead and start each thread.
Finally, when you want to check to see if a thread is alive, you want to call the isAlive() method on the reference variable you want to check on. The name field has nothing to do with the call.
I hope this helps.
If you have any more questions, please let me know.
Corey