withdraw

static boolean withdraw(int itemId, int amount)

Withdraws the specified amount of an item with the specified id

Return

true if withdrawn successfully, false otherwise

Parameters

itemId

the item id

amount

the amount to withdraw

static boolean withdraw(String itemName, int amount)

Withdraws the specified amount of an item with the specified name

Return

true if withdrawn successfully, false otherwise

Parameters

itemName

the item name

amount

the amount to withdraw

static boolean withdraw(Item item, int amount)

Withdraws the specified amount of the specified item

Return

true if withdrawn successfully, false otherwise

Parameters

item

the item to withdraw

amount

the amount to withdraw