- 1

How to show to output on scanner method

Tell

3rd Nov 2020, 11:58 AM
(RAHUL) [OR] (RAGAVENDRAN)
(RAHUL) [OR] (RAGAVENDRAN) - avatar
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);
3rd Nov 2020, 12:14 PM
D_Stark
D_Stark - avatar
0
For refference : Complete this lesson. (note :correct auto capitalization) https://www.sololearn.com/learn/Java/2220/
3rd Nov 2020, 12:36 PM
Jayakrishna 🇼🇳