diff --git a/Project/OSTask1/src/CustomerManagerApp.java b/Project/OSTask1/src/CustomerManagerApp.java index 2a27245..c161cd1 100644 --- a/Project/OSTask1/src/CustomerManagerApp.java +++ b/Project/OSTask1/src/CustomerManagerApp.java @@ -22,15 +22,15 @@ public static void main(String[] args) { action = Console.getString("Enter a command: "); System.out.println(); - if (action.equalsIgnoreCase("list")) { + if (action.equalsIgnoreCase(1)) { displayAllCustomers(); - } else if (action.equalsIgnoreCase("add")) { + } else if (action.equalsIgnoreCase(2)) { addCustomer(); - } else if (action.equalsIgnoreCase("del") || action.equalsIgnoreCase("delete")) { + } else if (action.equalsIgnoreCase(3) || action.equalsIgnoreCase("delete")) { deleteCustomer(); - } else if (action.equalsIgnoreCase("help") || action.equalsIgnoreCase("menu")) { + } else if (action.equalsIgnoreCase(4) || action.equalsIgnoreCase("menu")) { displayMenu(); - } else if (action.equalsIgnoreCase("exit")) { + } else if (action.equalsIgnoreCase(5)) { System.out.println("Bye.\n"); } else { System.out.println("Error! Not a valid command.\n"); @@ -93,4 +93,4 @@ public static void deleteCustomer() { System.out.println("No customer matches that email.\n"); } } -} \ No newline at end of file +} diff --git a/student.md.docx b/student.md.docx new file mode 100644 index 0000000..9f13dc2 Binary files /dev/null and b/student.md.docx differ