The following text was written to the standard output stream when the NumberList.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 69 420 666 233 22938 2000 18 32 888 365 650 46 23 1 901 >>> print first 69 >>> print last 901 >>> print 4 233 >>> print 10 365 >>> swap 4 10 >>> display 69 420 666 365 22938 2000 18 32 888 233 650 46 23 1 901 >>> swap 1 15 >>> display 901 420 666 365 22938 2000 18 32 888 233 650 46 23 1 69 >>> add first 100 >>> add last 200 >>> showallnumbers ### Unrecognizable command: showallnumbers >>> display 100 901 420 666 365 22938 2000 18 32 888 233 650 46 23 1 69 200 >>> exit