Change error message output to System.err for insufficient funds notification
This commit is contained in:
parent
257b063674
commit
cdf8a508c2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue