CS1 Standard Demo Page

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

>>> display
12
20
49
100
125
234
321
368
476
597
666
667
>>> print
first
12
>>> print
last
667
>>> print 5
125
>>> swap 1 5
>>> display
125
20
49
100
12
234
321
368
476
597
666
667
>>> add last
444
>>> display
125
20
49
100
12
234
321
368
476
597
666
667
444
>>> help
HELP - display a menu of commands
DISPLAY - display the list of numbers
PRINT - print a number (FIRST;LAST;nth)
SWAP - exchange two elements (nth;mth)
ADD - add a number to the list (FIRST;LAST)
EXIT - terminate execution of the program
>>> exit