Skip to content

Instantly share code, notes, and snippets.

@jeremiahlukus
Created November 13, 2018 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremiahlukus/ef904033a4b03799965695c50a4369ff to your computer and use it in GitHub Desktop.
Save jeremiahlukus/ef904033a4b03799965695c50a4369ff to your computer and use it in GitHub Desktop.
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