0
java scanner command
if we want to let the input as integer from the user , the how to specify to scanner? or is their any other way?
2 Réponses
+ 2
This should get an int from a user in a text-based user interface:
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
0
Also All methods is in this.. Revise this..
https://www.sololearn.com/learn/Java/2220/