What is wrong here?
import java.util.Scanner;
class Question {
public static void main(String args[]) {
Scanner myScanner = new Scanner(System.in);
String vee;
System.out.print("Are you short? (Yes/No)");
vee = myScanner.next();
if (vee == "Yes" || vee == "yes") {
System.out.print("You must be Andy then!");
}
else {
System.out.print("Nevermind!");
}
}
}
That is my code. and here is the result
Are you short? (Yes/No)Yes
Nevermind!
Process completed.
How come it cant detect the Yes word? Please Help

