- 1
How to show to output on scanner method
Tell
2 Answers
+ 2
You need to import the class.
Java.util.Scanner;
Create an instance.
Scanner sc = new Scanner(System.in);
Assign input to a variable.
String in = sc.nextLine();
Print out your input.
System.out.print(in);
0
For refference : Complete this lesson. (note :correct auto capitalization)
https://www.sololearn.com/learn/Java/2220/