title: Illegal modifier for the local class error
body: <p>So i'm still new to Java so this could be really dumb, But I Couldn't find an answer so here we go! At the beginning of my code I'm trying to declare the class, Simply with "public class robot{}" however, its giving me the error "Illegal modifier for the local class ____; only abstract or final is permitted". Everywhere I look on the internet, it says not to call it a static class, BUT I'M NOT!!! This could be something really dumb that I Don't know yet since I'm still new. Please Help! Here's my code:</p>
  
  <hr>
  
  <pre><code>public class Robot
  {
  private String dir = "N";
  
  public Robot(String dir)
   {
      this.dir = dir;
   }
  }
  </code></pre>