while(true){ System.out.println("请输入一个整数:"); Scanner consle=new Scanner(System.in); String userInput2 =consle.toString(); //String result = t1.checkYourself(userInput2); if (userInput2=="kill"){ break; } }
添加回答
举报
0/150
提交
取消