0
Outputting the input
So instead of System.out.println(myvar.nextLine()); I can declare a string variable and equate to read the input?
1 Answer
+ 2
Yep, you can assign Scanner.nextLine() to a String object to manipulate the input. Same goee for any nextN() data type.