Difference:
CSC121F2023Lab12Hint4
(1 vs. 2)
Revision 2
2023-06-26 -
cathybareiss
Line: 1 to 1
Changed:
<
<
META TOPICPARENT
name="CSC121F2-23Lab12"
>
>
META TOPICPARENT
name="CSC121F2023Lab12"
Hint for Inventory
Don't forget your
n
as a field variable!!!!!
The internal lookup methods are simple sequential searches.
Revision 1
2023-06-26 -
cathybareiss
Line: 1 to 1
Added:
>
>
META TOPICPARENT
name="CSC121F2-23Lab12"
Hint for Inventory
Don't forget your
n
as a field variable!!!!!
The internal lookup methods are simple sequential searches.
The internal lookup method that is sent an Item can return the results of the lookup method that is sent the name
Add the item to the end of the list. See the class example
To remove an item, find its location and move every one up one. See class example.
You can pick your sort algorithm. Use the compareTo method
Use the addItem in the
loadItems
method. While there is data, get the data, create an item, and add it to the list. Don't forget to close the file
To save the list, open the file, and output the result of the toString of the entire list.
View topic
|
H
istory
:
r2
<
r1
|
More topic actions...
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback