title: break statement in "if else" - java
body: <p>I keep getting an error, <code>if</code> without <code>else</code>.</p>
  
  <p>I tried <code>else if</code> as well</p>
  
  <pre><code>for (;;){
          System.out.println("---&gt; Your choice: ");
          choice = input.nextInt();
          if (choice==1)
              playGame();
          if (choice==2)
              loadGame();
          if (choice==3)
              options();
          if (choice==4)
              credits();
          if (choice==5)
              System.out.println("End of Game\n Thank you for playing with us!");
              break;
          else
              System.out.println("Not a valid choice!\n Please try again...\n");=[;'mm
      }
  </code></pre>
  
  <p>also if you have a better idea on how to present this code please do not hesitate :)</p>