The following text was written to the standard output stream when the NumberList program was executed from IntelliJ. The following commands were run in this order.
help
display
print first
print last
print 3
print 18
swap 5 7
display
swap 1 18
display
help
add first 100
add last 200
shownumber
display
exit
All commands appear after ">>>"
>>> 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 11 12 13 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 9 10 >>> print first 11 >>> print last 10 >>> print 3 13 >>> print 18 8 >>> swap 5 7 >>> display 11 12 13 14 17 16 15 18 19 20 1 2 3 4 5 6 7 8 9 10 >>> swap 1 18 >>> display 8 12 13 14 17 16 15 18 19 20 1 2 3 4 5 6 7 11 9 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 >>> add first 100 >>> add last 200 >>> shownumbers ### Unrecognizable command: shownumbers >>> display 100 8 12 13 14 17 16 15 18 19 20 1 2 3 4 5 6 7 11 9 10 200 >>> exit Process finished with exit code 0