depositAll

static boolean depositAll(int itemId)

Deposits all of an item with the specified id

Return

true if deposited successfully, false otherwise

Parameters

itemId

the item id

static boolean depositAll(String itemName)

Deposits all of an item with the specified name

Return

true if deposited successfully, false otherwise

Parameters

itemName

the item name

static boolean depositAll(InventoryItem item)

Deposits all of the specified item

Return

true if deposited successfully, false otherwise

Parameters

item

the item to deposit