Computer Science, asked by Anonymous, 11 months ago

diff between next and next line​

Answers

Answered by sarahsarahgmailcom
2

Answer:

next() can read the input only till the space. It can't read two words separated by space. Also, next() places the cursor in the same line after reading the input. nextLine() reads input including space between the words (that is, it reads till the end of line n).

Answered by ritvik86
1

tm kya use karte ho wo btao

Similar questions