Welcome to the Ranch, Johannes.
Johannes Smitth wrote:Post Today 21:03:45 Subject: Remove a most frequent character in string, counted by index in alphabetical order
Which function help me to sort the string in alphabetical order?
Well, you can't sort a string, as String is an immutable data type in
Java. What you could do, is to construct another string, which may contain the same characters just in the order you want them.
So how that could be done - you could build and
array of chars from the given string, then you could
)]sort it, and build a
new string from the sorted array of chars.
But before you do all that, would you like to explain us your full algorithm? That is what mostly matters as of now really.