+ 1

console class in java

I have taken this code from internet and checked all the statements but still it is showing some unusual error for console class. https://code.sololearn.com/cYFAfc8c2pos/?ref=app

15th Aug 2018, 7:25 AM
harshit
harshit - avatar
1 Answer
+ 10
your importing the console class but then you have called your class the same name as the console class so theres conflict why not import scanner instead ?
15th Aug 2018, 8:50 AM
D_Stark
D_Stark - avatar