title: Access thread and run a method inside Thread class
body: <p>Here's my code:</p>
  
  <pre><code>public class DJ {
      static Thread djThread = new DJPlayThread();
  
      public static void play(){
          djThread.start();
      }
  }
  </code></pre>
  
  <p>But once that thread is started, how can I run a method that is inside of the <code>DJPlayThread</code> class?</p>
  
  <p>Thanks.</p>