what is the difference between next and nextline | Sololearn: Learn to code for FREE!

+4

what is the difference between next and nextline

1/23/2017 10:13:00 AM

pushkar

4 Answers

New Answer

+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.