CS1 Standard Demo Page

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

>>>help
HELP    - display 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
15
14
10
9
13
12
8
7
11
6
5
4
3
2
1

>>>print first
15

>>>print last
1

>>>print 3
10

>>>print 12
4

>>>swap 5 7 

>>>display
15
14
10
9
8
12
13
7
11
6
5
4
3
2
1

>>>swap 1 15

>>>display
1
14
10
9
8
12
13
7
11
6
5
4
3
2
15

>>>add first 200

>>>add last 100

>>>shownumbers
### Unrecognizable command: shownumbers

>>>display
200
1
14
10
9
8
12
13
7
11
6
5
4
3
2
15
100

>>>exit

Process finished with exit code 0