I want to put the special characters, the parentheses ( \'(\' and \')\' ) and the apostrophe (\'), in an enum.
I had this:
private enum specialChars{
You should use something like this instead:
private enum SpecialChars { LEFT_BRACKET('('), RIGHT_BRACKET(')'), QUOTE('\''); char c; SpecialChars(char c) { this.c = c; } public char getChar() { return c; } }