Here is the error:
Exception in thread \"main\" java.util.regex.PatternSyntaxException: Unclosed character class near index 3 ], [ ^ at java.util.rege
.split("], [") ^---start of char class end----?
Change it to
.split("], \[") ^---escape the [