The following text was written to the standard output stream when the WordsList.java program was executed from Netbeans.
>>> display Hello Nice Too Meet You Dear You Are Somebody See You Soon >>> add FIRST Crocodile >>> add LAST Kangaroo >>> add evfj ### invalid operand for add command >>> display Crocodile Hello Nice Too Meet You Dear You Are Somebody See You Soon Kangaroo >>> 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 >>> swap 4 9 >>> display Crocodile Hello Nice Are Meet You Dear You Too Somebody See You Soon Kangaroo >>> print LAST Kangaroo >>> exit