The following text was written to the standard output stream when the NumberLists.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 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 >>> print 1 1 >>> swap 4 6 >>> display 1 2 3 6 5 4 7 8 9 0 1 2 3 4 5 >>> add first 23 >>> display 23 1 2 3 6 5 4 7 8 9 0 1 2 3 4 5 0 >>> exit