Saldo alle 10 Überweisungen

main
Kai-Niklas Dippold 2022-10-25 15:41:34 +02:00
parent 3d95b1432c
commit e09f33cf2a
1 changed files with 3 additions and 2 deletions

View File

@ -83,10 +83,11 @@ public class Banksystem {
public boolean checkSaldo(int kontonummer) {
Konto konto = bank.findeKonto(kontonummer);
if (konto.getKontobw().size() % 10 == 0) {
if ((konto.getKontobw().size() - 1) % 10 == 0) {
return true;
} else {
return false;
}
return false;
}
public String[] printSaldo(int kontonummer) {