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

Mohamed ijaaz recommend #155

Merged

Conversation

Ijaaz01
Copy link

@Ijaaz01 Ijaaz01 commented Apr 9, 2024

No description provided.

@Ijaaz01 Ijaaz01 added this to the v2.1 milestone Apr 9, 2024
@Ijaaz01 Ijaaz01 self-assigned this Apr 9, 2024
boolean isValidName = false;
String bouquetName = "placeHolder";
ui.printAskBouquetName();
while (!isValidName) {
bouquetName = ui.getInput();
Parser.checkRecommendExitCondition(bouquetName);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great way of implementing cancelling commands!

public void printAskBouquetName() {
System.out.println("Great we managed to find some flowers for you!");
System.out.println("Before we carry on what would you like to call your bouquet?");
System.out.println("Note: please take note 'cancel' cannot be used as a bouquet name");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@samuelory samuelory merged commit 930b2ab into AY2324S2-CS2113-T11-3:master Apr 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment