Use the ArrayList, and TreeSet to solve a specific problem create a class named
ID: 3626204 • Letter: U
Question
Use the ArrayList, and TreeSet to solve a specific problem
create a class named ListTreeSet that performs the following operations on the contents of a text file containing the address given by President Abraham Lincoln at Gettysburg, Pennsylvania 19 November 1863:
1. Tokenize the address into individual words and allow display to the screen (use a delimiter when reading the file).
2. Allow reporting of the total number of words in the address.
3. Sort the words of the address while removing duplicates words then display to the screen.
4. Report the number of duplicate words found in the original address.
5. Search the original address for the word “brave” (without quotes) and report its word position within the address.
6. Display the entire address token-by-token, reversed.
All of these operations must be exercised by the “user” class main method. The user class should perform the displaying of data provided by your ListTreeSet class. Your ListTreeSet class should NOT display anything.