-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Cheng Tze Ning] iP #67
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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
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 ")) { |
There was a problem hiding this comment.
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")
There was a problem hiding this comment.
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.
Branch level 9
# Conflicts: # src/main/java/Command.java # src/main/java/Duke.java # src/main/java/Messages.java
No description provided.