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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -