package de.fau.amos.virtualledger.dtos;

public class SavingsAccountSubGoal {

    private String name;
    private Double amount;

    public SavingsAccountSubGoal() {
    }

    public SavingsAccountSubGoal(final String name, final Double amount) {
        this.name = name;
        this.amount = amount;
    }

    public String getName() {
        return name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(final Double amount) {
        this.amount = amount;
    }
}

@@ -34,16 +34,42 @@
 .dtos;%0A%0A
+import java.util.Locale;%0A%0A
 public c
@@ -615,11 +615,144 @@
 t;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return name + %22: %22 + String.format(Locale.getDefault(), %22%25.2f%22, amount);%0A    %7D
 %0A%7D%0A

Add toString to SavingsAccountSubGoal.java