如何在所选方法执行后让菜单再次显示?
我有菜单选项打印到控制台。然后它接受用户输入(1 - 6),根据方法调用,然后应该返回菜单供用户再次从菜单中选择。
选择的方法执行后,程序就结束了。
public static void main (String[] arg) {
    Scanner kbd = new Scanner(System.in);
    String mainMenu = ("Select a choice from the menu: \n" 
            + "1. Add new DVD entry\n" 
            + "2. Look Up DVD Entry\n"
            + "3. Display DVDs By Category\n" 
            + "4. Remove DVD Entry\n"
            + "5. Save Data\n" 
            + "6. Exit");
    System.out.println(mainMenu);
    menuChoice = kbd.nextInt();
    while (menuChoice < 1 || menuChoice > 6) {
        System.out.print("\nError! Incorrect choice.\n");
        System.out.println(mainMenu);
        menuChoice = kbd.nextInt();
    }
    switch (menuChoice) {
    case 1: {
        // method code
        }
        else {
            // method code
            return;
        }
    }
    case 2: {
        // method code
        return;
    }
    case 3: {
        // method code
        return;
    }
    case 4: {
        // method code
        return;
    }   
    case 5: {
        // method code
        return;
    }
    case 6: {
        // method code
        System.exit(0);
        return;
    }
    }
}