CS1 Standard Demo Page

The following processes were done when NumberList.java program was executed from IntelliJ.

1. >>> help
2. HELP - display a menu of commands
3. DISPLAY - display the list of numbers
4. PRINT - print a number (FIRST;LAST;nth)
5. SWAP - exchange two elements (nth;mth)
6. ADD - add a number to the list (FIRST;LAST)
7. CLEAR - clears the console
8. LS - lists file in data directory
9. EXIT - terminate execution of the program
10. >>> display 
11. 1
12. 2
13. 3
14. 4
15. 5
16. 6
17. 7
18. 8
19. 9
20. 10
21. 11
22. 12
23. 13
24. 14
25. 15
26. >>> swap 1 15 
27. >>> display 
28. 15
29. 2
30. 3
31. 4
32. 5
33. 6
34. 7
35. 8
36. 9
37. 10
38. 11
39. 12
40. 13
41. 14
42. 1
43. >>> print first 
44. 15
45. >>> print last 
46. 1
47. >>> add first 42 
48. >>> add last 32 
49. >>> print first 
50. 42
51. >>> print last 
52. 32
53. >>> display
54. 42
55. 15
56. 2
57. 3
58. 4
59. 5
60. 6
61. 7
62. 8
63. 9
64. 10
65. 11
66. 12
67. 13
68. 14
69. 1
70. 32
71. >>> exit 

Process finished with exit code 0