3
private static final String errorMsg[] = {
4
"Error: Unmatched end-of-comment punctuation.",
5
"Error: Unmatched start-of-comment punctuation.",
6
"Error: Unclosed string.",
7
"Error: Illegal character."
10
public static final int E_ENDCOMMENT = 0;
11
public static final int E_STARTCOMMENT = 1;
12
public static final int E_UNCLOSEDSTR = 2;
13
public static final int E_UNMATCHED = 3;
15
public static void error(int code) {
16
System.out.println(errorMsg[code]);