Why StringBuilder class in Java dont have sort sort method like other types.. Eg- Arrays.. Also why Collections.sort() method only accepts List and not any other data type? I know it cannot accept hashset as it is not ordered but why not Stringbuilder or StringBuffer.. Thanks in advance!
What I have tried:
Sort method for StringBuilder in Java