title: Switch statement won't break
body: <p>I'm in the beginning of Java 7 Software design learning switch() and do...while () and what not. </p>
  
  <p>When I compile and run the program in Intelli J IDEA 13, it compiles and runs fine but nothing will break when the statements are complete. </p>
  
  <p>For example, when the program is run, on case 2, when I enter -1 after I input 3 grades (90, 90, 90, -1) it gives me the average (270) but then it repeats...</p>
  
  <p>It should break and go back to the beginning of the switch menu. Even when I enter 3 at the menu, it just displays "No Code Here... " to infinity, even with a break statement (even though break statements are outdated).</p>
  
  <pre><code>import java.util.Scanner;
  public class TestingPlatform {
  public static void main(String[] args) {   
  
  Scanner input = new Scanner(System.in);
      System.out.println("Enter 1 to set percentage of total for new grades, 2 to enter new      grades, 3 to get average, and 4 to quit: ");
      int choice = input.nextInt();
  
      do {
          switch (choice) {
              case 1:
                  System.out.println("Enter percent to multiply by: ");
                  double percent = input.nextDouble();
                  System.out.println("You entered " + percent);
                  break;
              case 2:
                  int total;
                  int gradeCounter;
                  int grade;
                  double average;
                  total = 0;
                  gradeCounter = 0;
  
                  System.out.println("Enter grade or -1 to quit: ");
                  grade = input.nextInt();
  
                  while (grade != -1) {
                      total = total + grade;
                      gradeCounter = gradeCounter + 1;
                      System.out.println("Enter grade or -1 to quit: ");
                      grade = input.nextInt();
                  }
                  if (gradeCounter != 0) {
                      average = (double) total / gradeCounter;
  
                      System.out.printf("\nTotal of the %d grades is %d\n", gradeCounter, total);
                      System.out.printf("Class average is %.2f\n", average);
                  } else
                      System.out.println("No grades were entered.");
                  break;
              case 3:
                  System.out.println("No code here yet....");
                  break;
  
          }
      } while (choice != 4);
  }
  }
  </code></pre>