Answer the question
In order to leave comments, you need to log in
Why doesn't if process the results from the scanner?
Scanner inData = new Scanner(System.in);
System.out.println("Would you like to continue?");
String answer = inData.nextLine();
if (answer == "yes"){
System.out.println("Test!");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question