Small thing, changed an output of warehouse a bit, shows user its the warehouse they are concerned with.
This commit is contained in:
@@ -29,6 +29,7 @@ public class Bank{
|
|||||||
if(response.equalsIgnoreCase("W")){
|
if(response.equalsIgnoreCase("W")){
|
||||||
boolean notDone2 = true;
|
boolean notDone2 = true;
|
||||||
while(notDone2){
|
while(notDone2){
|
||||||
|
System.out.println("How much do you wish to Withdraw");
|
||||||
int withdraw = input.nextInt();
|
int withdraw = input.nextInt();
|
||||||
if(withdraw <= player.getBank()){
|
if(withdraw <= player.getBank()){
|
||||||
player.setMoney(withdraw + player.getMoney());
|
player.setMoney(withdraw + player.getMoney());
|
||||||
@@ -40,6 +41,7 @@ public class Bank{
|
|||||||
}else if(response.equalsIgnoreCase("D")){
|
}else if(response.equalsIgnoreCase("D")){
|
||||||
boolean notDone2 = true;
|
boolean notDone2 = true;
|
||||||
while(notDone2){
|
while(notDone2){
|
||||||
|
System.out.println("How much do you wish to Deposit");
|
||||||
int deposit = input.nextInt();
|
int deposit = input.nextInt();
|
||||||
if(deposit <= player.getMoney()){
|
if(deposit <= player.getMoney()){
|
||||||
player.setBank(deposit + player.getBank());
|
player.setBank(deposit + player.getBank());
|
||||||
|
|||||||
Reference in New Issue
Block a user