Small thing, changed an output of warehouse a bit, shows user its the warehouse they are concerned with.

This commit is contained in:
Siddhant Dewani
2019-02-24 21:57:53 -07:00
parent e31587ecdc
commit 081892ea6d

View File

@@ -29,6 +29,7 @@ public class Bank{
if(response.equalsIgnoreCase("W")){
boolean notDone2 = true;
while(notDone2){
System.out.println("How much do you wish to Withdraw");
int withdraw = input.nextInt();
if(withdraw <= player.getBank()){
player.setMoney(withdraw + player.getMoney());
@@ -40,6 +41,7 @@ public class Bank{
}else if(response.equalsIgnoreCase("D")){
boolean notDone2 = true;
while(notDone2){
System.out.println("How much do you wish to Deposit");
int deposit = input.nextInt();
if(deposit <= player.getMoney()){
player.setBank(deposit + player.getBank());