Search:

Type: Posts; User: Sean4u

Search: Search took 0.12 seconds.

  1. Replies
    4
    Views
    1,250

    Re: String or Boolean help

    == 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...
  2. Replies
    4
    Views
    1,250

    Re: String or Boolean help

    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...
Results 1 to 2 of 2