Friday, 9 August 2013

Cannot find Scanner Class

Cannot find Scanner Class

This gives the error:
cannot find symbol Scanner
Why can't it find it?
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();
}
}

No comments:

Post a Comment