Threads are often designed in two ways (see java tutorials): either by extending the Thread class or by implementing the Runnable class. Either way, you need to specify what wil
For each class create an anonymous class based on Runnable. This will allow you to do what you need to do inside the run() method.