0
How get user input without using import.util.Scanner in java
3 Respuestas
+ 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
+ 1
use like this
system.out.println("enter any no");
java.util.Scanner s=new java.util.Scanner(System.in);
int x=s.nextInt();
0
You could use JOptionPane.showInputDialog ("Message");