I have a line as shown below:
String str = "77755529";
I want to break this line if a different number happens. The result should look like this after splitting:
str1 = "777";
str2 = "555";
str3 = "2";
str4 = "9";
I tried it with a section, but could not do it.
source
share