How to get users input in Java | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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
Nilesh - avatar
+ 7
soffiyah orewole Welcome :))
24th Jul 2020, 12:03 PM
Nilesh
Nilesh - avatar
0
Thank you
24th Jul 2020, 12:02 PM
soffiyah orewole
soffiyah orewole - avatar