The following text was written to the standard output stream when the WordList.java program was executed from Netbeans.
>>> help HELP - display a menu of commands DISPLAY - display the list of words PRINT - print a word (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a word to the list (FIRST;LAST) EXIT - terminate execution of the program >>> display Hey Moon Please Forget To fall Down Hey Moon Don't you Go down Brendon Urie Panic! At The Disco >>> add first hello >>> display hello Hey Moon Please Forget To fall Down Hey Moon Don't you Go down Brendon Urie Panic! At The Disco >>> add last dance >>> display hello Hey Moon Please Forget To fall Down Hey Moon Don't you Go down Brendon Urie Panic! At The Disco dance >>> print 3 Moon >>> swap 3 6 >>> display hello Hey To Please Forget Moon fall Down Hey Moon Don't you Go down Brendon Urie Panic! At The Disco dance >>> exit