Problema nel compilare programmi java
Inviato: giovedì 8 marzo 2007, 13:41
Ciao a tutti ho riscontrato questo problema mentre programmavo in java, non mi compila la classe Scanner ovvero se in un programma è presente: static Scanner input = new Scanner(System.in); oppure Scanner tastiera = new Scanner(System.in); mi da questo tipo di errore:
DuePiuGrandi1.java:3: cannot find symbol
symbol : class Scanner
location: class DuePiuGrandi1
static Scanner input = new Scanner(System.in);
^
DuePiuGrandi1.java:3: cannot find symbol
symbol : class Scanner
location: class DuePiuGrandi1
static Scanner input = new Scanner(System.in);
Cosa posso fare?grazie mille ciao
DuePiuGrandi1.java:3: cannot find symbol
symbol : class Scanner
location: class DuePiuGrandi1
static Scanner input = new Scanner(System.in);
^
DuePiuGrandi1.java:3: cannot find symbol
symbol : class Scanner
location: class DuePiuGrandi1
static Scanner input = new Scanner(System.in);
Cosa posso fare?grazie mille ciao