write square bracket in string
807603Oct 26 2007 — edited Oct 26 2007Hi
Just a short question (i hope). How can i write i square bracket in a string.
System.out.println("[");
Gives me the following exception on compiling:
Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed character class near index 0
[
Thank you
Carsten
Edited by: Carsten78 on Oct 26, 2007 12:59 PM