---+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
>
CSC121F2-23Lab12
>
CSC121F2023Lab12Hint4
Topic revision: r1 - 2023-06-26 - cathybareiss
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