0

How to descending the string in java

inputs: "abc" , "abd" ,"acb" output: acd abd abc

20th Dec 2020, 5:37 PM
kajamohan
kajamohan - avatar
3 Respostas
0
Here's some hint. Explore compareTo() https://code.sololearn.com/cNE9D05wuXCv/?ref=app
20th Dec 2020, 6:33 PM
Avinesh
Avinesh - avatar
0
With for loop you can iterate characters from end to the beginning of a string.
20th Dec 2020, 6:34 PM
JaScript
JaScript - avatar
0
thanks
20th Dec 2020, 6:35 PM
kajamohan
kajamohan - avatar