I am doing a if-else statements or switch-cases, but when I run it, It skipped and it will directly go to the try-catch method, How to fix it?

后端 未结 0 1534
[愿得一人]
[愿得一人] 2021-02-01 20:07
Scanner scan = new Scanner(System.in);
    try{
    do{
    menu();
    choice=scan.nextInt();
        if (choice == 1)
                edit();
        }
        else if         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题