title: getting illegal start of expression error
body: <p>i'm totally new to java. i 'm try to create my first program &amp; i get this error.</p>
  
  <pre><code>E:\java&gt;javac Robot.java
  Robot.java:16: error: illegal start of expression
  public String CreateNew (); {
                         ^
  Robot.java:16: error: ';' expected
  public String CreateNew (); {
                         ^
  2 errors
  </code></pre>
  
  <p>below is my program.</p>
  
  <pre><code>public class Robot {
      public static void main(String args[]){
          String model;
          /*int year;*/
          String status;
  
          public String CreateNew () {
              Robot optimus;
              optimus = new Robot();
              optimus.model="Autobot"; 
              /*optimus.year="2008";*/
              optimus.status="active";
              return (optimus.model);
          }
      }
  }
  </code></pre>