0
How can I use the stored data?
mport java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } }
2 ответов
+ 5
Using a variable.
String input = myVar.nextLine();
System.out.println(input);
// now you can still use the input for other things
0
Thanks