Tags:
create new tag
view all tags

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.
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2023-06-26 - cathybareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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