0

I am making a console application. I want to make a method to stop the application. Can anyone help please.

This is my code.

public void menu() {
        System.out.println("1 to go to menu help, 2 to go to head menu 3 to stop");
        int optie = scanner.nextInt();

        switch (optie) {
            case (1):
                menuHelp();
                break;
            case (2):
                showMenu();
            case (3):
                menuStop();
            default:
                System.out.println("ERROR: invalid value");
                clearScreen();

        }
    }

how do i make menuStop?

public void menuStop(){
        // What to do here??    
    }
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by stroper
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.