Question: Write a Java program that reads in a set of tokens and prints them out in alphabetical order, one token per line subject to the
Write a Java program that reads in a set of tokens and prints them out in alphabetical order, one token per line subject to the following:
1. Your main class, sortToken, must extend StringTokenizer.
2. Your class must implement a method called "alphaSort" with the following signature: String alphaSort(String str);
Your program must match the example below:
Program to sort tokens alphabetically.
Enter string: Hello my first and last name is John Zebra
Hello
John
Zebra
and
first
is
last
my
name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
