How to put Scanner | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to put Scanner

This is my code: (This code works, it just needs the Scanner) https://code.sololearn.com/ca157A16A12a

28th May 2021, 9:03 PM
Brianna
1 Answer
+ 2
Hello Brianna import java.util.Scanner; In your main: Scanner scan = new Scanner(System.in); String input = scan.next(); .nextLine() reads the complete Line
28th May 2021, 9:11 PM
Denise Roßberg
Denise Roßberg - avatar