The following text was written to the standard output stream when the NumberList.java program was executed from IntelliJ.
The original list of numbers ... 4 5 12 8 34 2 65 9 78 3 17 >>>print first 4 >>>add first 6 >>>print first 6 >>>add last 7 >>>print last 7 >>>swap 1 6 >>>display 34 4 5 12 8 6 2 65 9 78 3 17 7 >>>exit