try/catch issue - "cannot find symbol - class InputMismatchExeption"
I'm still learning try/catch but from what i've read online and in the class library it looks right...i'm not sure why it won't compile.
try{
do{
System.out.print("Enter command (1-5): ");
selection = scan.nextInt();
if (selection < 1 || selection > 5){
System.out.print("Illegal command number.");
System.out.println("The available commands are:");
System.out.println("\t1. Add new entry to the address book.");
System.out.println("\t2. Delete existing entry from address book entries.");
System.out.println("\t3. Print out all address book entries.");
System.out.println("\t4. Search records for a certain pattern.");
System.out.println("\t5. Quit the Application.");
}
}
while (selection < 1 || selection > 5);
}
//this does not work!!!!!!
catch( InputMismatchException ime ){
System.out.println("Illegal command.");
}

