diff --git a/build.gradle b/build.gradle index ea82051fab..77a37dc021 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ test { } application { - mainClass.set("seedu.duke.Duke") + mainClass.set("seedu.binbash.Duke") } shadowJar { diff --git a/src/main/java/seedu/duke/Duke.java b/src/main/java/seedu/binbash/Duke.java similarity index 96% rename from src/main/java/seedu/duke/Duke.java rename to src/main/java/seedu/binbash/Duke.java index 5c74e68d59..a00833698e 100644 --- a/src/main/java/seedu/duke/Duke.java +++ b/src/main/java/seedu/binbash/Duke.java @@ -1,4 +1,4 @@ -package seedu.duke; +package seedu.binbash; import java.util.Scanner; diff --git a/src/main/java/seedu/binbash/Item.java b/src/main/java/seedu/binbash/Item.java new file mode 100644 index 0000000000..55c35ab8a6 --- /dev/null +++ b/src/main/java/seedu/binbash/Item.java @@ -0,0 +1,24 @@ +package seedu.binbash; + +public class Item { + private final String itemName; + private final String itemDescription; + + public Item(String itemName, String itemDescription) { + this.itemName = itemName; + this.itemDescription = itemDescription; + } + + public String getItemName() { + return itemName; + } + + public String getItemDescription() { + return itemDescription; + } + + @Override + public String toString() { + return itemName + ": " + itemDescription; + } +} diff --git a/src/main/java/seedu/binbash/ItemList.java b/src/main/java/seedu/binbash/ItemList.java new file mode 100644 index 0000000000..30ff109fd5 --- /dev/null +++ b/src/main/java/seedu/binbash/ItemList.java @@ -0,0 +1,28 @@ +package seedu.binbash; + +import java.util.List; +import java.util.ArrayList; + +public class ItemList { + private final List itemList; + + public ItemList() { + itemList = new ArrayList<>(); + } + + public List getItemList() { + return itemList; + } + + /** + * Test method + */ + public void addItem(Item item) { + itemList.add(item); + } + + @Override + public String toString() { + return itemList.toString(); + } +} diff --git a/src/test/java/seedu/duke/DukeTest.java b/src/test/java/seedu/binbash/DukeTest.java similarity index 89% rename from src/test/java/seedu/duke/DukeTest.java rename to src/test/java/seedu/binbash/DukeTest.java index 2dda5fd651..334f1ce025 100644 --- a/src/test/java/seedu/duke/DukeTest.java +++ b/src/test/java/seedu/binbash/DukeTest.java @@ -1,4 +1,4 @@ -package seedu.duke; +package seedu.binbash; import static org.junit.jupiter.api.Assertions.assertTrue;