I have the following String:
String str = "123abc345def";
Now want to divide the above String as shown below, but somehow I am unable to perform this.
s[0] = "123";
s[1] = "abc";
s[2] = "345";
s[3] = "def";
Please help me out of these. Thanks in advance.