-
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
[Lam Yue Wei] iP #57
base: master
Are you sure you want to change the base?
[Lam Yue Wei] iP #57
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.
Overall, the code is easy to read. Hope these reviews can improve your code!
[Also took part in this review: @alaukiknpant ]
src/main/java/Duke.java
Outdated
|
||
public class Duke { | ||
public static void main(String[] args) { | ||
Task[] tasks = new Task[100]; | ||
int count = 1; | ||
int count = 0; | ||
boolean isBye = false; | ||
System.out.println(" ____________________________________________________________"); |
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.
Maybe we can apply refactoring to the greeting function.
src/main/java/Duke.java
Outdated
System.out.println(" ____________________________________________________________"); | ||
String[] stringSplit = string.split(" "); | ||
if (string.equals("list")) { | ||
switch (stringSplit[0]) { |
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.
Use switch to deal with different types of commands is more clear than my method. Nice!
src/main/java/Duke.java
Outdated
|
||
public class Duke { | ||
public static void main(String[] args) { | ||
Task[] tasks = new Task[100]; | ||
int count = 1; | ||
int count = 0; |
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.
Maybe we should use 'taskCount' to refer to the total number of tasks.
…as made changes according to the feedbacks given
…ine, event, default. Updated input and expected file
…than accessing the Task's isDone property
…s and structured by including corner cases
Complete Level 9 Find, Modify runtest.bat to delete duke.txt in text-…
Pull Request from Branch-A-JavaDoc to Master
Pull Request from branch-Level-8 to master
No description provided.