Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean transferFrom(BankAccount acct, int amt ){
- account.lock();
- try{
- if (balance >= amt) {
- return true;
- }
- else return(false);
- }finally{ account.unlock();}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement