The following text was written to the standard output stream when the NumberList.java program was executed from IntelliJ.
The Original List of Numbers... 77 42 59 31 20 12 92 6 81 120 60 43 60 49 72 >>> hfhd ### Unrecognizable command: hfhd >>> 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 77 42 59 31 20 12 92 6 81 120 60 43 60 49 72 >>> print first 77 >>> print last 72 >>> print 3 59 >>> swap 1 3 >>> display 59 42 77 31 20 12 92 6 81 120 60 43 60 49 72 >>> add first 1 >>> add last 2 >>> display 1 59 42 77 31 20 12 92 6 81 120 60 43 60 49 72 2 >>> exit Process finished with exit code 0 Process finished with exit code 0