I was wondering about this crazy thing in StringUtils.split(string,separator);
I want to separate a string using a separator @@--@@
and my code goes like this.
String[] strings = StringUtils.split("kayf86@--@9@--@5r43987@!@!%%^&^$%@!@!%-@@*&%$*(&^$%@!@!%--@", "@--@");
for (String string : strings) {
System.out.println(string);
}
I found the output as such
kayf86
9
5r43987
!
!%%^&^$%
!
!%
*&%$*(&^$%
!
!%
I use commons-lang-2.6.jar
Can some one explain that how this thing had happen.