0

How get user input without using import.util.Scanner in java

23rd Jan 2018, 5:01 AM
PRASHANT Mishra
PRASHANT Mishra - avatar
3 odpowiedzi
+ 6
Perhaps you don't want to use the Scanner class? In that case, there are many other classes that can help you take the user input: https://stackoverflow.com/a/19532416
23rd Jan 2018, 8:10 AM
Dev
Dev - avatar
+ 1
use like this system.out.println("enter any no"); java.util.Scanner s=new java.util.Scanner(System.in); int x=s.nextInt();
23rd Jan 2018, 4:23 PM
Vishal
Vishal - avatar
0
You could use JOptionPane.showInputDialog ("Message");
23rd Jan 2018, 6:46 AM
Jonas Schröter
Jonas Schröter - avatar