+ 9
In Java how can i take input from user and store in variable like take some int input from user
3 ответов
+ 8
this is giving new error
+ 3
Scanner sc=new Scanner(System.in);
System.out.println("enter input");
int a=sc.nextInt();
this is perfect...other and have prob
+ 2
Using Scanner class
Scanner x= new Scanner (System.in);
int a ;
a=x.nextInt();
//wait until user input