SHARE
TWEET

Untitled

a guest May 19th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   public static Account consolidate(Account acct1, Account acct2){
  2.      
  3.       if (acct1.acctNum != acct2.acctNum){
  4.           if (acct1.name == acct2.name){
  5.       Account acct3 = new Account(acct1.getBalance()+acct2.getBalance(), "Name", 481516);
  6.       acct1.close();
  7.       acct2.close();
  8.      
  9.      
  10.       return acct3;
  11.           }
  12.       }
  13.       return null;
  14.  
  15.   }
RAW Paste Data
Top