Change error message output to System.err for insufficient funds notification

This commit is contained in:
Dominik 2025-02-20 08:23:18 +01:00
parent 257b063674
commit cdf8a508c2

View file

@ -47,7 +47,7 @@ public class Account {
public void processPayment(long amount) {
if (AccountBalance - amount < -OverdraftLimit) {
System.out.println("Deckung nicht ausreichend.");
System.err.println("Deckung nicht ausreichend.");
} else {
AccountBalance -= amount;
}