How to get users input in Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to get users input in Java

What's the line of code used to obtain user input

24th Jul 2020, 11:52 AM
soffiyah orewole
soffiyah orewole - avatar
3 Answers
+ 9
import java.util.Scanner public class xD { psvm(String args[]) { Scanner sc = new Scanner(System.in); } } https://www.sololearn.com/learn/Java/2220/?ref=app
24th Jul 2020, 11:59 AM
Nilesh
+ 7
soffiyah orewole Welcome :))
24th Jul 2020, 12:03 PM
Nilesh
0
Thank you
24th Jul 2020, 12:02 PM
soffiyah orewole
soffiyah orewole - avatar