Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Ui for recommend to remove redundancy and grammar errors #113

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -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
Expand All @@ -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
```
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/florizz/core/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -368,7 +367,7 @@ public String printAskColour(ArrayList<Flower> 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<String> colourList = new ArrayList<>();
for (Flower flower : eligibleFlowers) {
Expand All @@ -379,6 +378,7 @@ public String printAskColour(ArrayList<Flower> eligibleFlowers) {
for (String colour : colourList){
System.out.println("- " + colour);
}
printBreakLine();
return inputScanner.nextLine();
}

Expand Down
Loading