|
@@ -47,7 +47,7 @@ public class CashMachine {
|
47
|
47
|
}
|
48
|
48
|
}
|
49
|
49
|
|
50
|
|
- public void exit() {
|
|
50
|
+ public void logOut() {
|
51
|
51
|
if (accountData != null) {
|
52
|
52
|
accountData = null;
|
53
|
53
|
}
|
|
@@ -58,7 +58,7 @@ public class CashMachine {
|
58
|
58
|
return accountData != null ? accountData.toString() : "Try account 1000 or 2000 and click submit.";
|
59
|
59
|
}
|
60
|
60
|
|
61
|
|
- private <T> void tryCall(Supplier<ActionResult<T> > action, Consumer<T> postAction) {
|
|
61
|
+ public <T> void tryCall(Supplier<ActionResult<T> > action, Consumer<T> postAction) {
|
62
|
62
|
try {
|
63
|
63
|
ActionResult<T> result = action.get();
|
64
|
64
|
if (result.isSuccess()) {
|