What is the difference in next() and next().charAt(0) methods of Scanner class?
Answers
Answered by
1
Answer:
next () : The function of next () is that the cursor remains in the same line
next line () : The function of next line () is that the cursor moves to the next line
Similar questions