The following text was written to the standard output stream when the NumberListDemo.java program was executed from Netbeans.
run: >>>display 11 22 33 44 55 66 77 88 99 100 111 222 333 >>>add first 300 >>>display 300 11 22 33 44 55 66 77 88 99 100 111 222 333 >>>add last 900 >>>display 300 11 22 33 44 55 66 77 88 99 100 111 222 333 900 >>>swap 1 2 >>>display 11 300 22 33 44 55 66 77 88 99 100 111 222 333 900 >>>help HELP - display 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 >>>print 4 33 >>>print 9 88 >>>exit BUILD SUCCESSFUL (total time: 2 minutes 44 seconds)