From 4cd873aa6167fa4520488793f512626d108803df Mon Sep 17 00:00:00 2001 From: Jeffinson Darmawan Date: Fri, 5 Apr 2024 17:57:43 +0800 Subject: [PATCH] Changed Ui --- docs/UserGuide.md | 6 +++--- src/main/java/florizz/core/Ui.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 532b8c160b..4705449cd9 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -65,7 +65,7 @@ Format: `mybouquets` Expected output: ``` -Here are the list of your saved bouquets: +Here is the list of your saved bouquets: 1. For Girlfriend : No flowers added so far ``` @@ -201,7 +201,7 @@ Steps: Expected output: ``` For what occasion are you buying flowers for? -Here are the list of our available occasion: +Here is the list of our available occasion: Here are all the occasions associated with the available flowers: - Funeral - Wedding @@ -214,7 +214,7 @@ ____________________________________________________________ Expected output: ``` What colour would you like your bouquets to be? -Here are the list of colours available for the occasion: +Here is the list of colours available for the occasion: - DARK_CRIMSON - WHITE ``` diff --git a/src/main/java/florizz/core/Ui.java b/src/main/java/florizz/core/Ui.java index 2cca602176..a4be767b9e 100644 --- a/src/main/java/florizz/core/Ui.java +++ b/src/main/java/florizz/core/Ui.java @@ -354,7 +354,6 @@ public void printIOError() { */ public String printAskOccasion() { System.out.println("For what occasion are you buying flowers for?"); - System.out.println("Here are the list of our available occasion:"); this.printAllOccasions(); return inputScanner.nextLine(); } @@ -368,7 +367,7 @@ public String printAskColour(ArrayList eligibleFlowers) { System.out.println("What colour would you like your bouquets to be?"); // print all available colours in a given array list - System.out.println("Here are the list of colours available for the occasion: "); + System.out.println("Here is the list of colours available for the occasion: "); // remove duplicate colours in eligible flowers ArrayList colourList = new ArrayList<>(); for (Flower flower : eligibleFlowers) { @@ -379,6 +378,7 @@ public String printAskColour(ArrayList eligibleFlowers) { for (String colour : colourList){ System.out.println("- " + colour); } + printBreakLine(); return inputScanner.nextLine(); }