0

Can any one explain me the different ways to enter number from user sides?

means program ask you to enter number and then you can enter number

5th Sep 2016, 6:11 AM
Vishvapalsinh Paramar
Vishvapalsinh Paramar - avatar
3 Antworten
0
Scanner scan = new Scanner(System.in); int userNumber = scan.nextInt(); scan.close(); System.out.println(userNumber); Check out the Scanner class in Java Docs for other "next" methods for different data types.
5th Sep 2016, 9:16 AM
Mike Wintle
Mike Wintle - avatar
0
u can use Scanner class or BufferReader clasa of java to get the inputs from user. Scanner is most easy as compared to BufferReader
5th Sep 2016, 11:46 AM
Sonu Mishra
Sonu Mishra - avatar
0
scanner, buffered reader , constructor , methods etc
6th Sep 2016, 1:01 PM
Saransh Agarwal
Saransh Agarwal - avatar