Elia Schwartz, June 5, 2025, COP 3330C - 33777
Using the Java Collections framework, students will learn how to use it to control and access data. This program attempts to get eight individual words from the user, then input those values into an ArrayList while manipulating how it is organized and displayed to the console.
The application does the following:
- The application checks that the user has not entered a duplicate word before adding it to the ArrayList.
- Displays the ArrayList contents in the order the user entered them.
- Output the size of the list.
- Displays the longest and shortest words in the list.
- Utilizing the Collection Framework, call the sort method to organize the words in alphabetical order.
- List the words from longest to shortest.
- Using the shuffle method from the Collection Framework, change the order of the words that are output.
- Search for a particular word in the list with a for loop.
- Binary search in the Collection class for faster location of a word.
- Convert an ArrayList to an array and vice versa.
- Fill the entire list with another word.