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 5 18 6 23 9 4 6 18 4 43 85 >>> print 1 5 >>> print 2 18 >>> swap 1 2 >>> print 1 18 >>> print 2 5 >>>