SyntaxFix
Write A Post
Hire A Developer
Questions
If your class inherits from Thread, you can use methods getName and setName to name each thread. Otherwise you could just add a name field to MyTask, and initialize it in your constructor.
getName
setName
name
MyTask