Script started on Sun 07 Oct 2001 02:07:30 AM HST
uhunix2:/home/27/ztomasze/java% java2 TestList
**** List Interface Tester ****
All <position> arguments are integers; <token> can be any token, for example:
command: a 1 poi
command: a 1 papayas
command: a 3 bananas
command: r 2
-------------------------------
a <position> <token> - add string <token> at <position>
g <position> - get the string at the position indicated
r <position> - delete the string at <position>
s - get size of this vector or report empty if size = 0
e, x, empty line - exit
command: a 1 B
1: B
command: a 2 C
1: B
2: C
command: a 1 A
1: A
2: B
3: C
command: a 2 D
1: A
2: D
3: B
4: C
command: g 4
4 has C
1: A
2: D
3: B
4: C
command: g 1
1 has A
1: A
2: D
3: B
4: C
command: g 5
Position 5 is invalid (out of range)
1: A
2: D
3: B
4: C
command: r 6
Position 6 is invalid (out of range)
1: A
2: D
3: B
4: C
command: r a 1
1: D
2: B
3: C
command: r 2
1: D
2: C
command: r 2
1: D
command: r 1
The list is empty.
command: a 2 B
Position 2 is invalid (out of range)
The list is empty.
command: a a 1 stillWorks
1: stillWorks
command: a s
1 things are on the list.
1: stillWorks
command: r 1
The list is empty.
command: d e
The list is empty.
uhunix2:/home/27/ztomasze/java% ^D
script done on Sun 07 Oct 2001 02:09:53 AM HST
