My java code :
Scanner sc = new Scanner(System.in) ;
String y = "" ;
String z = "a" ;
System.out.print("Type a number : ");
y = sc.next();
System.out.println( y + " == " +z+ " :");
System.out.println( y == z);
The result printout :
Type a number : a
a == a : false
However, my expectation is TRUE.