title: Bracket locations in Java; Unsure of placement
body: <p>Okay, so my first day in a real programming class. I'm excited but I don't understand how to know where brackets } { go. </p>
  
  <p>Edit: For instance, this compiles fine but skips the last step to print "done". Seems that my online compiler was to blame: <a href="http://ideone.com" rel="nofollow">http://ideone.com</a> Can anyone recommend something else?</p>
  
  <pre><code>/* Name of the class has to be "Main" only if the class is public. */
  class Ideone
  {
      public static void main (String[] args) throws java.lang.Exception
      {
          for (int x=1; x&lt;=3; x++) {
          System.out.println("Number: " +x);  
          }
      System.out.println("Done!");        
      }
  }
  </code></pre>
  
  <p>Thank you everyone! </p>