CS1 Standard Demo Page

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

display
30
5
10
20
14
3
7
33
17
2
6
5
35
8
15
>>> 
print
first
30
>>> 
swap
3 5
>>> 
display
30
5
14
20
10
3
7
33
17
2
6
5
35
8
15
>>> 
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