diff --git a/src/main/java/Dish.java b/src/main/java/Dish.java index e107a6db9..b5a6f104c 100644 --- a/src/main/java/Dish.java +++ b/src/main/java/Dish.java @@ -3,17 +3,17 @@ public class Dish { /** - * Arraylist of all ingredients for dish + * Arraylist of all ingredients for dish. */ private ArrayList ingredients; /** - * Name of dish + * Name of dish. */ private String name; /** - * Dish constructor + * Dish constructor. * @param name name of dish * @param ingredients arraylist of ingredients in dish */ @@ -23,7 +23,7 @@ public Dish(String name, ArrayList ingredients) { } /** - * Returns ingredients in dish + * Returns ingredients in dish. * @return arraylist of ingredients in dish */ public ArrayList getIngredients() { diff --git a/src/main/java/Menu.java b/src/main/java/Menu.java index 1fe21ae24..e9ba24265 100644 --- a/src/main/java/Menu.java +++ b/src/main/java/Menu.java @@ -1,16 +1,15 @@ import java.util.ArrayList; -import java.util.Collections; import java.util.HashMap; public class Menu { /** - * Hashmap of all dishes on menu + * Hashmap of all dishes on menu. */ private static HashMap dishMap = new HashMap(); /** - * Adds a dish to the menu based on the input string + * Adds a dish to the menu based on the input string. * @param input input string that include dish name and ingredients in no specific order */ public static void addDish(String input) { @@ -21,7 +20,7 @@ public static void addDish(String input) { } /** - * Removes dish from menu + * Removes dish from menu. * @param name name of dish to remove */ public static void deleteDish(String name) { @@ -29,7 +28,7 @@ public static void deleteDish(String name) { } /** - * Parses ingredients from string + * Parses ingredients from string. * @param input string of ingredients * @return ArrayList of ingredients */ @@ -45,7 +44,7 @@ public static ArrayList parseIngredients(String input) { } /** - * Parses name from input string + * Parses name from input string. * @param input input string * @return name of dish */ @@ -56,7 +55,7 @@ public static String parseName(String input) { } /** - * Print's dishes out from dishMap + * Print's dishes out from dishMap. */ public static void printDishes() { for (String name: dishMap.keySet()) { @@ -70,7 +69,7 @@ public static void printDishes() { } /** - * Return's dishMap hashmap + * Return's dishMap hashmap. * @return dishmap hashmap */ public static HashMap getDishMap() {