deposit

static boolean deposit(int itemId, int amount)

Deposits the specified amount of an item with the specified id

Return

true if deposited successfully, false otherwise

Parameters

itemId

the item id

amount

the amount to deposit

static boolean deposit(String itemName, int amount)

Deposits the specified amount of an item with the specified name

Return

true if deposited successfully, false otherwise

Parameters

itemName

the item name

amount

the amount to deposit

static boolean deposit(InventoryItem item, int amount)

Deposits the specified quantity of the specified item

Return

true if deposited successfully, false otherwise

Parameters

item

the item to deposit

amount

the amount to deposit