while(true){ System.out.println("請(qǐng)輸入一個(gè)整數(shù):"); Scanner consle=new Scanner(System.in); String userInput2 =consle.toString(); //String result = t1.checkYourself(userInput2); if (userInput2=="kill"){ break; } }
為什么一直處于循環(huán)
qq_小樹(shù)_6
2017-03-02 13:13:56