+ 1

I want more learn about the java user input.

java

21st Jan 2018, 8:18 AM
Rajesh Shinde
Rajesh Shinde - avatar
2 Respuestas
21st Jan 2018, 8:24 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
you can do it by importing java util package or simply like this. when you dont know about packages.. System.out.println("Enter user name"); java.util.Scanner s=new java.util.Scanner(System.in); String x=s.next(); for Integer Input int x=s.nextInt();
21st Jan 2018, 11:47 AM
Vishal
Vishal - avatar