diff options
Diffstat (limited to 'src/main/java/org/drtshock')
| -rw-r--r-- | src/main/java/org/drtshock/Potato.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/drtshock/Potato.java b/src/main/java/org/drtshock/Potato.java index 4eb7390..fc591bd 100644 --- a/src/main/java/org/drtshock/Potato.java +++ b/src/main/java/org/drtshock/Potato.java @@ -11,7 +11,7 @@ import java.util.List; */ public class Potato implements Tuber { - private final List<Condiment> condiments = new ArrayList<Condiment>(); + private final List<Condiment> condiments = new ArrayList<>(); public static void main(String[] args) { final Potato potato = new Potato(); @@ -39,7 +39,8 @@ public class Potato implements Tuber { * @throws NotDeliciousException If the potato is not delicious */ public void prepare() throws NotDeliciousException { - this.addCondiments("sour cream", "chives", "butter", "crumbled bacon", "grated cheese", "ketchup", "salt", "tabasco"); + this.addCondiments("sour cream", "chives", "butter", "crumbled bacon", "grated cheese", "ketchup", "pepper", + "salt", "tabasco", "tomatoes"); this.listCondiments(); if (!this.isDelicious()) throw new NotDeliciousException(NotDeliciousReason.NOT_BAKED); } |
