The following text was written to the standard output stream when the NumberList program was executed from IntelliJ.
>>> display 2 8 17 3 9 4 15 7 1 18 10 >>> 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 >>> print 7 15 >>> swap 5 3 >>> display 2 8 9 3 17 4 15 7 1 18 10 >>> add first 40 >>> display 40 2 8 9 3 17 4 15 7 1 18 10 >>> exit