Intro to Java Classwork: List Keeper, Part 1
Write a Java program named "ListKeeperPart1.java" that has the user
enter up to ten words, which should all be stored in an array of
Strings.  The user should press the ENTER key after each word, and
then press ENTER on a line by itself (with no word) when finished
entering words (unless the user enters ten words, in which case
your program should not prompt the user for an 11th word).

After the user is finished entering words, display the complete list
of words back to the user in the reverse order in which they were
entered, one word per line.  When printing the words, make sure you
do not display any 'null' or blank entries.

For this assignment, you must keep the 'main' method as sparse as
possible.  Your code for getting the words from the user must be
in its own method, and the code for displaying the words back to
the user must also be in its own method.

Other than the 'Scanner' class, for this program you may not import
or use any external methods.  Also, other than a single Java array
of Strings, you are not allowed to use any global variables in your
program.  The output of your program should be neat, organized, and
easy to understand.


As always, all of your code must be your own, written entirely and
only by you within your online CodeHS.com account.  You must never
copy/paste, receive, view, or in any way use code that was created
or modified by another person, entity, or artificial intelligence.


Advanced Option #1
Use the word number when asking the user to enter words into the
array.  For example:  "Please enter word #1:".

Advanced Option #2
In addition to, or instead of, the above advanced option, add a
feature that requires the user to enter at least one word into
the array.  If the user presses the ENTER key on a line by itself
before entering any words, keep asking the user to enter a word
until at least one word is in the array.

Advanced Option #3
Add an additional method that disallows duplicate words (ignoring
case) in the array.  This method should be called every time the
user enters a word, before the word is added to the array.  This
option may be completed along with, or instead of, the above
advanced options.

Advanced Option #4
After the list of words has been displayed, call an additional
method that displays the user's word list in order and allows
the user to delete one or more words from the array.  It is up
to you how you have the user choose which word(s) to remove from
the array.  After each word is removed, your program must condense
the array by moving all of the remaining words to the front of
the array, leaving only empty or null entries at the back/end of
the array.  You must then re-display the word list to the user
and allow more words to be removed.  However, you must never
allow the array to become totally empty; the array must always
contain at least one word.  This option may be completed along
with, or instead of, the above advanced options.