The following text was written to the standard output stream when the NumberList.java? program was executed from IntelliJ.
>>> display Apple Banna Cat Dog Pig Johnson Chicken Jeff Brett Hole Kevin Ryn Noob >>> print last Noob >>> print first Apple >>> print 2 Banna >>> print 7 2 Chicken >>> ### Unrecognizable command: 2 >>> swap 2 3 >>> display Apple Cat Banna Dog Pig Johnson Chicken Jeff Brett Hole Kevin Ryn Noob >>> add last dc >>> add first cd >>> display cd Apple Cat Banna Dog Pig Johnson Chicken Jeff Brett Hole Kevin Ryn Noob dc >>> 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 >>> exit