(int value)
| 21 | } |
| 22 | |
| 23 | public int deposit(int value) { |
| 24 | int temp = balance; |
| 25 | try { |
| 26 | Thread.sleep(300); |
| 27 | temp = temp + value; |
| 28 | Thread.sleep(300); |
| 29 | balance = temp; |
| 30 | } catch (InterruptedException e) { } |
| 31 | return temp; |
| 32 | } |
| 33 | |
| 34 | public int getBalance() { |
| 35 | return balance; |