I am a newbie to this language but not to programming.
I am using scanner to get the client's input and recognize when they type "y". For some reason "y" does not equal "y". Snippet
Scanner input = new Scanner(System.in);
String response;
response = input.next();
if (response != "y")
System.out.println("what?");
I run it, type "y" and get "What?"