CS1 Standard Demo Page

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

>>> 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
>>> display
1
2
5
9
17
69
420
8
7
11
13
>>> print first
1
>>> print last
13
>>> print 3
5
>>> print 10
11
>>> swap 5 7 
>>> display
1
2
5
9
420
69
17
8
7
11
13
>>> swap 1 10
>>> display
11
2
5
9
420
69
17
8
7
1
13
>>> 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
>>> display
11
2
5
9
420
69
17
8
7
1
13
>>> exit

Process finished with exit code 0