import java.util.Scanner; public class ExceptionTester { public static void main(String[] args){ int initialBalance, deposit, withdraw; Scanner input = new Scanner(System.in);//init. scanner input System.out.println("Welcome to BankAccount Exception Tester by: Leo Gorokhovsky"); System.out.println("Please enter your Initial Balance"); try { initialBalance= input.nextInt(); BankAccount bank = new BankAccount(initialBalance); } catch (IllegalArgumentException exception) { System.out.println("Sorry, you cannot have a negitive balance"); } System.out.println("How much money would you like to deposit?"); try { deposit = input.nextInt(); bank.deposit(deposit); } catch (IllegalArgumentException exception) { System.out.println("Sorry, you cannot deposit a negitive balance"); } } }