- 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"

2nd Feb 2022, 10:00 PM
Makseem
Makseem - avatar
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();"
3rd Feb 2022, 3:43 AM
HydroShock
HydroShock - avatar