+ 12

How to convert scanner into int and string in java ??

int num1 = new Scanner (System.in); javac error: Scanner cannot be converted to Int Please help me with this one.

22nd Mar 2017, 3:39 AM
Siddharth Saraf
2 Respostas
+ 10
thanks @Luka for this. It worked perfectly
22nd Mar 2017, 4:53 AM
Siddharth Saraf