Error message is as follows : Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Scanner cannot be resolved to a type
Scanner cannot be resolved to a type
import java.util.scanner;
import java.io.*;
public class Areaofasquare2 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
System.out.print("Hi, This is a program to calculate Area of a Square");
System.out.print("What is the length of the square");
double length = input.nextDouble();
System.out.print("What is the width of the square");
double width= input.nextDouble();
double area= width * length;
System.out.print("The area of the square is");
System.out.println (area);
// TODO Auto-generated method stub
}