Skip to content
Advertisement

How can i sort a string without using sort() method in java?

I want to sort a string “computer” -> “cemoprtu”, but without using Arrays.sort(string).

Advertisement

Answer

Looks like you need to sort the characters, so I’d start with

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement