0

Java - I can't use scanner class..please help

I imported java.util, I typed in Scanner sc = newScanner (System.in); but it says it doesn't recognize this method. Please help me.

24th Jan 2017, 4:49 AM
Sayhan Ahmed
Sayhan Ahmed - avatar
2 Answers
+ 3
Hmm. It seems, you haven't a space between "new" and "Scanner". So your program recognizes it as a method "newScanner()".
24th Jan 2017, 5:33 AM
Dmitry Pudov
Dmitry Pudov - avatar
0
thanks will fix it :)
24th Jan 2017, 5:35 AM
Sayhan Ahmed
Sayhan Ahmed - avatar