I want to put the special characters, the parentheses ( ‘(‘ and ‘)’ ) and the apostrophe (‘), in an enum.
I had this:
private enum specialChars{
"(", ")", "'"
}
but it doesn’t work. Java says something about invalid tokens.
How can I solve this?
Grtz
me.eatCookie();
You could do something like this:
Example use: