You are viewing a single comment's thread. Return to all comments →
what is scan.hasnext ?
scan is your scanner name ?
but what is the meaning of this ?
That's it, scan is his scanner's name, that's the name he gave to the object created.
Scanner x = new Scanner(System.in); ::: x is the scanner's name