Helper tostring in recipe for easier debugging
This commit is contained in:
parent
8c8584b6bf
commit
7d21a572af
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue