String str = "u0054u0068u0069u006eu006bu0050u0061u0064"; String[] strArray = str.split("");
but this error occured.
Exception in thread "main" java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
it should be
String[] strArray = str.split("");
the reason why is because in Regex, has special meaning so you need to escape it into \.
Regex
\
and in java, \ should be equal to ""
""
2.1m questions
2.1m answers
60 comments
57.0k users