0

How to get I/p for any type using Scanner

how to get I/p for any type w/o using integer.parsint etc using Scanner or any other efficient way

14th Dec 2017, 1:33 PM
Akshay Gaigole
Akshay Gaigole - avatar
1 Answer
+ 12
Scanner scan = new Scanner(System.in); String str = scan.nextLine(); // string int a = scan.nextInt(); // integer double b = scan.nextDouble(); // double
14th Dec 2017, 1:38 PM
Shamima Yasmin
Shamima Yasmin - avatar