+ 4

what is the difference between next and nextline

23rd Jan 2017, 10:13 AM
pushkar
4 Antworten
+ 5
next, input in current line nextline, input after enter new line (like '/n' before input)
23rd Jan 2017, 1:18 PM
Mohammad Reza Karimi
Mohammad Reza Karimi - avatar
+ 1
please explain with an example
25th Jan 2017, 2:33 PM
pushkar
+ 1
next helps to take a single word and nextline helps to take multiple words
27th Jan 2017, 12:38 AM
Sambit sinha
- 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.
27th Jan 2017, 2:48 AM
kamal Rawat
kamal Rawat - avatar