title: how to break out of a void method, if not with "return;"
body: <p>How do I break out of a void method and get back to the switch method?</p>
  
  <pre><code>    public static void decrypt() throws FileNotFoundException {
      Scanner kbrd = new Scanner(System.in);
      System.out.println("Enter Key-file name: ");
      String filename = kbrd.nextLine();
      System.out.println("Enter Message-filename: ");
      String mssgFilename = kbrd.nextLine();
      String[] keyArray = loadMessage(filename);
      String[] message = loadMessage(mssgFilename);
      String[] cipher = xor2(message, keyArray);
      String readable = showText(cipher);
      System.out.println("The text:" + readable);
      return;
  }
  </code></pre>
  
  <p>and then here is the switch method</p>
  
  <pre><code>    System.out.println("Encrypt  1.");
      System.out.println("Decrypt  2.");
      System.out.println("Make Key 3.");
      System.out.println("Quit     4.");
      Scanner scan = new Scanner(System.in);
      String choice = scan.nextLine();
  
      do {
          switch (choice) {
          case "1":
              encrypt();
              break;
          case "2":
              decrypt();
              break;
          case "3":
              makeKey();
              break;
  
          }
  
      } while (choice != "4");
  </code></pre>
  
  <p>Problem is, whatever I choose it stays in that method despite the return statement at the end , shouldn't that bring me back to the switch method? </p>