- 2
Java how can i solve this please please help
Given alphanumeric String, we need to split the string into substrings of consecutive letters or numbers, sort the individual string and append them back together Ex: Input: "DC501GCCCA098911" Output: "CD015ACCCG011899"
1 Answer
0
I actually have an execution issue trying to solve it myself. But, I can tell you that, to sort a string, you can use "Arrays.sort(array);" where the statement "java.util.Arrays;" is in use and "char[] array = string.toCharArray();"