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 87 32 45 1111 3000 5 1 71 2001 70 12345 >>> print first 87 >>> print last 12345 >>> print 3 45 >>> print 18 0 >>> swap 5 7 >>> display 87 32 45 1111 1 5 3000 71 2001 70 12345 >>> swap 1 10 >>> display 70 32 45 1111 1 5 3000 71 2001 87 12345 >>> 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 >>> add last 200 >>> shownumbers ### Unrecognizable command: shownumbers >>> display 100 70 32 45 1111 1 5 3000 71 2001 87 12345 200 >>> exit