The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.
/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -javaagent:/opt/intellij-idea-community/lib/idea_rt.jar=40655:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath "/home/akyaw/IdeaProjects/CS1/out/production/CS1:/home/akyaw/Downloads/Programming lab 2/SimplePainter.jar:/home/akyaw/Downloads/Programming lab 2/SimpleComposer.jar:/home/akyaw/Downloads/Programming lab 2/jfugue-4.0.3-with-musicxml.jar" arraylistplay.WordList >>> help HELP - display a menu of commands DISPLAY - display the list of words PRINT - print a word (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a word to the list (FIRST;LAST) EXIT - terminate execution of the program >>> display white blackbard Oswego Computer Linux Mouse Elephant Lion Black Phone Hair Cloth Winter Snow Summer >>> print first white >>> print last Summer >>> print 3 Oswego >>> print 15 Summer >>> swap 5 7 >>> display white blackbard Oswego Computer Elephant Mouse Linux Lion Black Phone Hair Cloth Winter Snow Summer >>> swap 1 15 >>> display Summer blackbard Oswego Computer Elephant Mouse Linux Lion Black Phone Hair Cloth Winter Snow white >>> help HELP - display a menu of commands DISPLAY - display the list of words PRINT - print a word (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a word to the list (FIRST;LAST) EXIT - terminate execution of the program >>> add first 100 >>> add last 200 >>> showwords ### Unregonizable Command: showwords >>> display 100 Summer blackbard Oswego Computer Elephant Mouse Linux Lion Black Phone Hair Cloth Winter Snow white 200 >>> exit