Created
November 13, 2018 01:41
-
-
Save jeremiahlukus/ef904033a4b03799965695c50a4369ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BofaRunnerNV { | |
public static void main(String[] args) { | |
bankAccountNV b1 = new bankAccountNV("Alexander Hamilton", 4287); | |
bankAccountNV b2 = new bankAccountNV("Elizabeth Skylar", 7849); | |
bankAccountNV b3 = new bankAccountNV("Aaron Burr", 6427); | |
bankAccountNV b4 = new bankAccountNV("Angelica Skylar", 2178); | |
bankAccountNV b5 = new bankAccountNV("Thomas Jefferson", 9872); | |
System.out.println(b1); | |
bankAccountNV [] arr = {b1, b2, b3, b4, b5}; | |
BofaNV bf = new BofaNV(arr); | |
//System.out.println(bf.toString); | |
//System.out.println(bf); | |
// System.out.println(bf.search("Alexander Hamilton")); | |
// System.out.println(bf.search("George Washington")); | |
// System.out.println(bf.zeroAccount("Alexander Hamilton")); | |
// System.out.println(bf.zeroAccount("George Washington")); | |
// System.out.println(bf.printAll()); | |
// System.out.println(bf.addAll()); | |
} | |
} | |
public class BofaNV { | |
bankAccountNV[] bankAccounts; | |
double totalAmount; | |
public BofaNV(bankAccountNV[] bA) { | |
this.bankAccounts = bA; | |
for(int i =0; i < bankAccounts.length; i++){ | |
System.out.println(bankAccounts[i]); | |
} | |
} | |
public String toString() { | |
System.out.println(this); | |
return "I'm in toString"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment