Here is the code giving me trouble:
String more = "yes";
Scanner in = new Scanner(System.in);
while (more != "no") {
//do stuff
System.out.println("Want to add more? (yes or no)");
more = in.nextLine();
}
So long as the user does not enter "no," the loop should continue. The issue is that when I enter no, it still doesn't stop.