-
Notifications
You must be signed in to change notification settings - Fork 19
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
[Chi Lai Ping] iP #3
base: master
Are you sure you want to change the base?
Conversation
src/main/java/Duke.java
Outdated
processInput(input, tasks); | ||
} else { | ||
greetNote("bye"); | ||
return; |
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.
Since the main() method is void type, perhaps use "break" is better here than use "return".
src/main/java/Duke.java
Outdated
|
||
try { | ||
switch(action) { | ||
case List: |
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.
I like this part as you abstract all actions to different methods. It's more readable and clear
src/main/java/Duke.java
Outdated
} | ||
|
||
static Action validateCommand(String command) throws DukeException { | ||
if(command.startsWith("list")) { |
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.
The way of validating the user input commands are smart. And this method is able to be extended.
Level-6: Delete Function
This reverts commit a1e4f40.
Branch level 9
Merging branch-Level-10 to main
…Guide A-UserGuide
Merging A-HigherCodingQuality with added Documentation
No description provided.