withdrawAll

static boolean withdrawAll(int itemId)

Withdraws all of an item with the specified id

Return

true if withdrawn successfully, false otherwise

Parameters

itemId

the item id

static boolean withdrawAll(String itemName)

Withdraws all of an item with the specified name

Return

true if withdrawn successfully, false otherwise

Parameters

itemName

the item name

static boolean withdrawAll(Item item)

Withdraws all of the specified item

Return

true if withdrawn successfully, false otherwise

Parameters

item

the item to withdraw