The following text was written to the standard output stream when the NumberListDemo.java program was executed from IntelliJ.
>>> 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 20 15 60 12 5 8 19 100 30 62 98 500 14 80 79 >>> print first 20 >>> print last 79 >>> print 3 60 >>> print 10 62 >>> swap 5 7 >>> display 20 15 60 12 19 8 5 100 30 62 98 500 14 80 79 >>> swap 1 10 >>> display 62 15 60 12 19 8 5 100 30 20 98 500 14 80 79 >>> 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 >>> add first 100 >>> display 100 62 15 60 12 19 8 5 100 30 20 98 500 14 80 79 >>> add last 200 >>> shownumbers ### Unrecognizable command: shownumbers >>> display 100 62 15 60 12 19 8 5 100 30 20 98 500 14 80 79 200 >>> exit