Helper tostring in recipe for easier debugging

This commit is contained in:
Imbus 2024-05-05 10:44:07 +02:00
parent 8c8584b6bf
commit 7d21a572af

View file

@ -10,6 +10,12 @@ public class Recipe {
}
public String toString() {
return name;
StringBuilder sb = new StringBuilder(name + ": ");
for (Ingredient i : ingredients) {
sb.append(i.toString());
sb.append(" ");
}
return sb.toString();
}
}