Skip to content

[Cheng Tze Ning] iP - #67

Open
tzzzening wants to merge 38 commits into
nus-cs2113-AY1920S2:masterfrom
tzzzening:master
Open

[Cheng Tze Ning] iP#67
tzzzening wants to merge 38 commits into
nus-cs2113-AY1920S2:masterfrom
tzzzening:master

Conversation

@tzzzening

Copy link
Copy Markdown

No description provided.

@ananda-lye ananda-lye left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not much violations, coding quality not bad :)

@yolanmz yolanmz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overall, your code is easy to read except some conditional statements can be possibly simplified. All your best for your iP xD

Comment thread src/main/java/Duke.java Outdated
while (!userInput.equals("bye")) {
if (userInput.equals("list")) {
printTasks();
} else if (userInput.length() > 4 && userInput.substring(0, 5).equals("done ")) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Consider simplifying the conditional statement using startsWith. It is applicable to the rest of the conditions below.
Ex. else if(userInput.startsWith("done")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for your suggestion. I find it very efficient 👍 Will add it to my code later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants