-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBankTester.java
More file actions
33 lines (30 loc) · 1.09 KB
/
BankTester.java
File metadata and controls
33 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
public class BankTester
{
public static void main (String [] args)
{
bank b = new bank();
// b.deposit("Winfrey", 25159684372.43);
// b.deposit("Bezos", 193495330293.43);
// b.deposit("Bezos", 20394353.35);
// System.out.println(b.checkBalance("Bezos"));
// System.out.println(b.checkBalance("Winfrey"));
// System.out.println(b.checkBalance("YoMama"));
// System.out.println(b.checkBalance("MrTheiss"));
// b.withdraw("Bezos", 3593293.66);
// b.deposit("MrTheiss",64033.55);
// b.withdraw("MrTheiss", 443964.46);
// System.out.println(b.checkBalance("Bezos"));
// System.out.println(b.checkBalance("Winfrey"));
// System.out.println(b.checkBalance("YoMama"));
// System.out.println(b.checkBalance("MrTheiss"));
b.deposit("Winfrey", 25159684372.43);
b.deposit("Bezos", 20394353.35);
b.withdraw("Bezos", 3593293.66);
b.deposit("MrTheiss",64033.55);
b.withdraw("MrTheiss", 443964.46);
System.out.println(b.checkBalance("Bezos"));
System.out.println(b.checkBalance("Winfrey"));
System.out.println(b.checkBalance("YoMama"));
System.out.println(b.checkBalance("MrTheiss"));
}
}