I\'m trying to prompt the user to give me one of three strings: \"Amsterdam,\" \"Lexington,\" and \"Madison.\" If the user doesn\'t enter one of those strings, they should be re
String x = keyboard.next();
while (!x.equals("Amsterdam") && !x.equals("Lexington") && !x.equals("Madison")) {
System.out.println("Please enter a valid city.");
x = keyboard.next();
}