toString() angepasst

This commit is contained in:
Madeleine Vigier 2022-12-17 17:30:04 +01:00
parent 27b2186c87
commit 7d2b03d584

View File

@ -52,10 +52,12 @@ public class Menue{
}
}
@Override
public String toString() {
return "Montag" + "\t\t\t\t" + dish + "\n" + date + "\t\t\t" + sideDish
+ "\n" + "\t\t\t\t\t" + ingredients + "\n " + "\t\t\t\t\t" + getTyp() + "\n"; //replace("[","").replace("]","")
return dish + "\n" + sideDish
+ "\n" + ingredients.toString().replace("[","").replace("]","") + "\n" + getTyp() + "\n";
}
}