Chapter 16: Problem 20
\((\) Sorting Words with a Treeset) Write a program that uses a String method split to tokenize a line of text input by the user and places each token in a TreeSet. Print the elements of the TreeSet. [Note: This should cause the elements to be printed in ascending sorted order.]
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.