Computer Science, asked by ronaknair418, 11 days ago

What is the difference in next() and next().charAt(0) methods of Scanner class?​

Answers

Answered by veenasehdev3449
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