0

Can someone explain me this Scanner myVar = new Scanner(System.in);

13th May 2019, 4:35 PM
Merfid Alihodzic
Merfid Alihodzic - avatar
2 Antworten
+ 5
To get input from user you need to create an object of Scanner class. By using that object you can input integer, floats,double,string etc from user. Example: Scanner sc=new Scanner (System.in); //Object sc.nextInt(); //get integer input from user etc
13th May 2019, 4:50 PM
Rstar
Rstar - avatar
0
Thanks a lot😊😊😊
13th May 2019, 4:56 PM
Merfid Alihodzic
Merfid Alihodzic - avatar