3.
how can reverse numbers in a string when they are split with "-"? It has to be in java, manually, no imports allowed, although we are allowed to use only methods/functions from the String class. please explain too so I can study!<>
example:input: 3-1, 4, 5, 6-9output: 1-3, 4, 5, 6-9another example:
input: 1-6, 8, 9-12, 16-13, 17output expected: 1-6, 8, 9-12, 13-16, 17
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here