+ 4
what is the difference between next and nextline
4 Answers
+ 5
next, input in current line
nextline, input after enter new line (like '/n' before input)
+ 1
please explain with an example
+ 1
next helps to take a single word and nextline helps to take multiple words
- 2
next take a single word of any string and nextLine take a complete sentence of string and both the next and nextLine are used for string data type.