bessere Reihenfolge

This commit is contained in:
fabianArbeit 2025-03-27 09:02:39 +01:00
parent d0306217bb
commit f384c6d1d0

View File

@ -174,6 +174,8 @@ class Darlehenberechner {
konfig.setZinssatzProzent((BigDecimal) DECIMAL_FORMAT.parse(dis.readLine()));
System.out.print("Monatliche Rate: ");
konfig.setMonatlicheRate((BigDecimal) DECIMAL_FORMAT.parse(dis.readLine()));
System.out.print("Monat erste Rate(z.B. 2007-12): ");
konfig.setAnfangsmonat(YearMonth.parse(dis.readLine()));
System.out.print("Laufzeit in Jahren(optional Jahre:Monate): ");
String in = dis.readLine();
if (in != null && !in.isBlank()) {
@ -191,8 +193,6 @@ class Darlehenberechner {
if (in != null && !in.isBlank()) {
konfig.setTilgungsfreieZeit(Integer.parseInt(in));
}
System.out.print("Monat erste Rate(z.B. 2007-12): ");
konfig.setAnfangsmonat(YearMonth.parse(dis.readLine()));
System.out.print("Sondertilgungssatz(optional): ");
in = dis.readLine();
if (in != null && !in.isBlank()) {