Using the StringTokenizer
class, write an application that reads a line of text and prints
(a)
the
number of occurrences of each letter of the alphabet in alphabetic order (do
not print letters that do not appear in the input string)
(b)
A
count of one-letter words, two-letter words etc. (there are 4 two- letter words
in the input string below). Do not list the individual words.
(c)
Each
unique word that occurs and the number of times it appears (This and this are
different words)
(d)
Each
unique word that occurs with the number of times it occurs sorted
alphabetically. This time convert all words to lowercase. Do not change the
original array but use arraycopy to have a second array
which you will convert to lowercase and sort using the Arrays class method.