I wanted to know how can I separate a string into two parts and save it in two different variables.
String str = "3-abc";
And want to save it in two Strings:
String part1 = "3"; String part2 = "abc";
Any help will be highly appreciated, Thanks