CS1 Standard Demo Page The following text was written to the standard output stream when the TheWordList2.java program was executed from IntelliJ.
>>> 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 Pokemon Brionne Shiftry Lairon Kecleon Vanilluxe Ditto Manaphy Staravia Gyarados Pidgey Eevee >>> print first Pokemon >>> print last Eevee >>> print 2 Shiftry >>> print 11 Eevee >>> swap 2 11 >>> display Pokemon Brionne Eevee Lairon Kecleon Vanilluxe Ditto Manaphy Staravia Gyarados Pidgey Shiftry >>> swap 1 3 >>> display Pokemon Lairon Eevee Brionne Kecleon Vanilluxe Ditto Manaphy Staravia Gyarados Pidgey Shiftry >>> 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 ThisProgramStartsAtZeroIndex >>> add last UnlikeTheArrayVersions >>> display ThisProgramStartsAtZeroIndex Pokemon Lairon Eevee Brionne Kecleon Vanilluxe Ditto Manaphy Staravia Gyarados Pidgey Shiftry UnlikeTheArrayVersions >>> exit