You are viewing a single comment's thread. Return to all comments →
Read the println line you can see that in.nextline() this is were input is taken.
but how it is suppose to print End of line?
hasNext function makes this possible.Till there is any returns true if this scanner has another token in its input.