== compares the left hand side with the right hand side. answer's 'type' is a String reference - it's a reference that you assigned to a (reference to a) String object returned from your Scanner's...
Type: Posts; User: Sean4u
== compares the left hand side with the right hand side. answer's 'type' is a String reference - it's a reference that you assigned to a (reference to a) String object returned from your Scanner's...
one = is 'assignment', it means copy the value on the right to the variable on the left. The type of an 'x = y' expression is the type of x, so String x = "a letter y" is an expression with a String...