0

System.out.println (myVar.nextLine());

what is meaning of that code

18th Jun 2017, 8:41 AM
R Prathibha
R Prathibha - avatar
7 Réponses
+ 16
Means you're using the Scanner class to get input from the user. Use of nextLine() states that myVar is of String data-type! Whatever the user will input, it will be displayed on the console.
18th Jun 2017, 8:45 AM
Dev
Dev - avatar
+ 10
mean You read user input and show user input😊😊 https://code.sololearn.com/c6n6e9DE0XwV/?ref=app
18th Jun 2017, 8:48 AM
Nithiwat
Nithiwat - avatar
+ 9
@R Prathibha You can learn on lesson😄😄
18th Jun 2017, 9:28 AM
Nithiwat
Nithiwat - avatar
+ 1
myVar is probably a scanner that is meant to read the user's input. I know that because of the function it's calling [nextLine()] But it says that it should directly print out what the user has typed in
18th Jun 2017, 8:46 AM
Limitless
Limitless - avatar
+ 1
thanku
18th Jun 2017, 8:49 AM
R Prathibha
R Prathibha - avatar
+ 1
wt is the need to use scanner classes
18th Jun 2017, 8:49 AM
R Prathibha
R Prathibha - avatar
0
k
18th Jun 2017, 9:28 AM
R Prathibha
R Prathibha - avatar