import java.util.Scanner;
public class Two {
public static void main (String args[]){
Scanner input = new Scanner(System.in);
boolean userReady=false;
do{
System.out.println("y/n")
String userinput = input.nextLine();
if (userinput.equals("y")){
userReady = true;
}else if (userinput.equals("n")){
userReady = false;
}
}while (userReady = false);
System.out.println("You are ready!");
}
結果始終是「你是準備好了」我敢肯定,它的一個超級簡單的修復,我只是不能左右我的頭......
這整理了我感謝:) – user3755900