The following text was written to the standard output stream when the WordList program was executed from IntelliJ.
#"C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.2\jbr\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.2\lib\idea_rt.jar=57600:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Users\HP\IdeaProjects\CS1\out\production\CS1;C:\Users\HP\Downloads\JAVA files\SimplePainter.jar;C:\Users\HP\Downloads\JAVA files\SimpleComposer.jar;C:\Users\HP\Downloads\JAVA files\jfugue-4.0.3-with-musicxml.jar" arrayplay.WordList >>>help HELP - display 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 NewYork Chicago SanFrancisco Seattle Wahington Austin Denver Boston LosAngles Houston SanDiego Dallas Detroit NewOrleans LosVegas >>>print 1 NewYork >>>print 15 LosVegas >>>print 4 Seattle >>>print 10 Houston >>>swap 2 13 >>>display NewYork Detroit SanFrancisco Seattle Wahington Austin Denver Boston LosAngles Houston SanDiego Dallas Chicago NewOrleans LosVegas >>>swap 6 7 >>>display NewYork Detroit SanFrancisco Seattle Wahington Denver Austin Boston LosAngles Houston SanDiego Dallas Chicago NewOrleans LosVegas >>>help HELP - display 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 >>>show ### Unrecognizable command: show >>>add first Oswego >>>add last miami >>>display Oswego NewYork Detroit SanFrancisco Seattle Wahington Denver Austin Boston LosAngles Houston SanDiego Dallas Chicago NewOrleans LosVegas miami >>>exit