java - Cannot find Scanner Class -
import util.java.scanner; class anagram { public static void main(string args[]) { string s1=new string(); scanner s=new scanner(system.in); s1=s.nextline(); } }
this gives error :
cannot find symbol scanner....
whats wrong here?
the correct import statement java.util.scanner
. avoiding these kind of errors, use , ide.
Comments
Post a Comment