From 9f84e23a10f10f81f28f59bad4009b798a416214 Mon Sep 17 00:00:00 2001 From: Siddhant Dewani Date: Sun, 24 Feb 2019 21:34:01 -0700 Subject: [PATCH] Small thing, changed an output of warehouse a bit, shows user its the warehouse they are concerned with. --- src/loanShark.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/loanShark.java b/src/loanShark.java index f8298cf..20dab5a 100644 --- a/src/loanShark.java +++ b/src/loanShark.java @@ -1,5 +1,7 @@ import java.util.Scanner; +import static javafx.application.Platform.exit; + public class loanShark { private Player player; public void setPlayer(Player player) { @@ -28,9 +30,14 @@ public class loanShark { player.setDebt(player.getDebt() + loanAsk); player.setMoney(player.getMoney() + loanAsk); } + else{ + System.out.println("Sorry you cant be loaned that much"); + break; + } String check; System.out.println("Would you like to do any other business? Y / N?"); check = keyboard.nextLine(); + check = keyboard.nextLine(); if(check.equalsIgnoreCase("Y")) { keepGoing = true;