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.
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylF2023 >
CSC121F2023Lab12 > CSC121F2023Lab12Hint4
Topic revision: r2 - 2023-06-26 - cathybareiss