Write a method toSortedForm that uses stream operations to convert a String parameter into a sorted form

Question:

Write a method toSortedForm that uses stream operations to convert a String parameter into a sorted form with its letters in alphabetical order. For example, if the string passed is "tennessee", return "eeeennsst".

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: