if(getBank().isOpen()){
if (getBank().contains("itemA")) {
getBank().withdraw("itemA", 5); //Will withdraw 5 of Item A
}
if (getBank().contains("itemB")) {
getBank().withdrawAll("ItemB"); //will withdraw ALL of Item B
}
if (getBank().contains("itemC")) {
getBank().withdraw("itemC", 5); //Will withdraw 5 of Item C
}
if (getBank().contains("itemD")) {
getBank().withdrawAll("ItemD"); //will withdraw ALL of Item D
}
}
--This might not be the best way but hope it can help!