Write a method that returns a sorted string using the following header: public static String sort(String s)

Question:

Write a method that returns a sorted string using the following header:
public static String sort(String s)
For example, sort("acb") returns abc.
Write a test program that prompts the user to enter a string and displays the sorted string.

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

Step by Step Answer:

Question Posted: