Hi all

i am using netbeans 4.1 and JCreator.

my problem is that i wish to read in from the keyboard but i get errors.

import java.io.*;
import java.lang.*;
import java.util.*;

class Hospital{


public static void main (String[] args){



int num;
Scanner sc = new Scanner(System.in);


System.out.println("**********HOPSPITAL**********\n\n");
System.out.println("Please choose the correct number");
num = sc.next ();

The error i get is:

--------------------Configuration: <Default>--------------------
C:\Hospital.java:14: cannot resolve symbol
symbol : class Scanner
location: class Hospital
Scanner sc = new Scanner(System.in);
^
C:\Hospital.java:14: cannot resolve symbol
symbol : class Scanner
location: class Hospital
Scanner sc = new Scanner(System.in);
^
2 errors

Process completed.

Please Help