Re: Newbie question on identifiers for basic catch statements
- From: Ralf Seitner <Ralf.Seitner@xxxxxx>
- Date: Mon, 18 Sep 2006 18:16:31 +0200
[...]
The error that the compiler gives looks like thisHi!
Program6.java:25: cannot find symbol
symbol : class InputMismatchException
location: class QuestionTwoShot
} catch (InputMismatchException e) {
^
1 error
You didnt import the class, so the compiler doesnt know where to find it.
Import it with "import java.util.ImportMismatchException"
Example:
import java.util.ImportMismatchException;
public class QuestionTwoShot {
....
}
bye, Ralf
.
- References:
- Prev by Date: Re: Newbie question on identifiers for basic catch statements
- Next by Date: Re: What is the preferred way to parse messages out of a log?
- Previous by thread: Re: Newbie question on identifiers for basic catch statements
- Next by thread: Tree data structure in Java
- Index(es):