Skip to content

Commit

Permalink
Update Accounts.java
Browse files Browse the repository at this point in the history
  • Loading branch information
JitseGoutbeek authored Jun 28, 2024
1 parent b9f9a80 commit 995b37d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ public class Accounts {
@SuppressWarnings("unused")
public static CheckingAccount findAcctByNumber(String number) {
return new CheckingAccount();
public static SavingsAccount findAcctByNumber(String number) {
return new SavingsAccount();
}

// tag::isValid[]
Expand All @@ -15,4 +17,4 @@ public static boolean isValid(String number) {
return sum % 11 == 0;
}
// end::isValid[]
}
}

0 comments on commit 995b37d

Please sign in to comment.