System.out.println("Enter a string: ");
String myString = userInput.nextLine();
while (myString != "done") {
System.out.println(myString);
System.out.println("Enter another string: ");
myString = userInput.nextLine();
}
My objective here is to print out all the strings that user inputs until the user types in the string "done". What am I doing wrong?