Let's say I've got a string with three strings looking like this:
String s = "[object1,object2,object3]";
How do I convert this to a String array which looks like this:
String[] ary = {"object1", "object2", "object3"};
Also mind that each string item (object1
, object2
and object3
) may also contain additional comma (,
) characters.