title: Java code is not executing instance method
body: <p>I am using the BlueJ IDE. I have a main class entitled <code>ProgramOne</code>, and another class <code>StarTurtle</code> (intended to serve an instance method).</p>
  
  <p>Here is the code of <code>ProgramOne</code>:</p>
  
  <pre><code>public class ProgramOne
  {
       public static void main (String[ ] args)  
       {  
            StarTurtle turtle1 = new StarTurtle(5);
            turtle1.StartTurtle();
  
          }
      }
  </code></pre>
  
  <p>Here is the code of <code>StarTurtle</code>:</p>
  
  <pre><code>public class StarTurtle 
  { 
  
  private int points;      
  
  public int StartTurtle(int x) 
  { 
  points = x; 
  
  Turtle sue;
  sue = new Turtle();
  sue.paint (90, 40); 
  
  } 
  
  } 
  </code></pre>
  
  <p>(The <code>turtle</code> method you see is from two other classes that I have not pasted here for the sake of brevity. These classes are found in the <a href="http://www.cs.ccsu.edu/~jones/book.htm" rel="nofollow noreferrer">http://www.cs.ccsu.edu/~jones/book.htm</a> manual)</p>
  
  <p>The code only compiles, and there is no option to execute. However, there is no option to execute <code>void main (String[ ] args)</code>, which there should be to execute the main class. Does anyone know what is the cause of this? I am assuming that there is a problem in the code itself.</p>
  
  <p><strong>Edit:</strong> When I mean "option to execute", I am referring to this BlueJ functionality:</p>
  
  <p><img src="https://i.stack.imgur.com/0BOKY.png" alt="BlueJ"></p>
  
  <p><strong>Edit:</strong> Changing the code in the manner which Titus and Redge described (in the answers and comments of answers) fixed the <code>StarTurtle</code> class, but the main class <code>ProgramOne</code> still does not execute.</p>