public class ItemManager
extends java.lang.Object
Constructor and Description |
---|
ItemManager() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(Item anItem)
Adds an item in the list
|
java.util.ArrayList<Item> |
getAllItems() |
Item |
getItem(int index)
Retrieves an item from a selected position
|
void |
removeItem(int index)
Removes an item from the list
|
void |
reportAllItems()
Displays all the information for each item in the console
|
public void addItem(Item anItem)
public void removeItem(int index)
public Item getItem(int index)
index:
- position of the item to be retrievedpublic java.util.ArrayList<Item> getAllItems()
public void reportAllItems()