CS1 Standard Demo Page

The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.

>>> display
lychee
banana
apple
pear
peach
durian
raspberries
grape
watermelon
coconut
>>> print first
lychee
>>> print last
coconut
>>> print 3
apple
>>> print 10
coconut
>>> swap 5 7
>>> display
lychee
banana
apple
pear
raspberries
durian
peach
grape
watermelon
coconut
>>> swap 1 10
>>> 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 hello
>>> add last goodbye
>>> display
hello
coconut
banana
apple
pear
raspberries
durian
peach
grape
watermelon
lychee
goodbye
>>> exit
Class transformation time: 0.071007659s for 294 classes or 2.4152264965986395E-4s per class