Here’s my code:
public class DJ {
static Thread djThread = new DJPlayThread();
public static void play(){
djThread.start();
}
}
But once that thread is started, how can I run a method that is inside of the DJPlayThread class?
Thanks.
Here is a simple example of how to do what you ask: