title: Java Runnable Implementation
body: <p>I have the following program, and I need to implement Runnable. The issue is that I call the start() method in a second class, and I get an error. The Error says that it does not recognize the symbol: method start(). </p>
  
  <pre><code>class MyBall  implements Runnable {
  
  public MyBall(){}
  
  @Override
  public void run() {}
  
  public void draw(Graphics g){}
  
  }
  
  
  class MyBallWindow extends JFrame {
  
  MyBall myBall[];
  public MyBallWindow(){
  
      myBall = new MyBall[2];
      myBall[0] = new MyBall(00, 0, 300, this, Color.red);
  
      myBall[1] = new MyBall(100, 0, 400, this, Color.yellow);
  
      for (int i = 0; i &lt; 2; i++) {
          myBall[i].start();//this is the error it does not recognize it.
      }
  
  }
  
  public void paint(Graphics g){}
  
  }
  
  
  
  public class runningBalls  {
  public static void main(String [] args){ 
      new MyBallWindow(); }
  }
  </code></pre>