WordList Demo

The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.

	    The original list of words ...
	    Dirty
	    Fly
	    Money
	    Brother
	    Little
	    Happy
	    Silly
	    Energy
	    Basic
	    Open
	    Close
	    Jump
	    >>> help
	    HELP - display a menu of commands
	    DISPLAY - display the list of numbers
	    PRINT - print a number (FIRST;LAST;nth)
	    SWAP - exchange two elements (nth;mth)
	    ADD - add a number to the list (FIRST;LAST)
	    EXIT - terminate execution of the program
	    >>> display
	    Dirty
	    Fly
	    Money
	    Brother
	    Little
	    Happy
	    Silly
	    Energy
	    Basic
	    Open
	    Close
	    Jump
	    >>> print 3
	    Money
	    >>> print last 
	    Jump
	    >>> print first
	    Dirty
	    >>> swap 5 8
	    >>> display
	    Dirty
	    Fly
	    Money
	    Brother
	    Energy
	    Happy
	    Silly
	    Little
	    Basic
	    Open
	    Close
	    Jump
	    >>> add first rice
	    >>> display
	    rice
	    Dirty
	    Fly
	    Money
	    Brother
	    Energy
	    Happy
	    Silly
	    Little
	    Basic
	    Open
	    Close
	    Jump
	    >>> add last gorilla
	    >>> display
	    rice
	    Dirty
	    Fly
	    Money
	    Brother
	    Energy
	    Happy
	    Silly
	    Little
	    Basic
	    Open
	    Close
	    Jump
	    gorilla
	    >>> exit