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

[Lam Yue Wei] iP #57

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open

Conversation

lamyuewei
Copy link

No description provided.

@lamyuewei lamyuewei changed the title [Lam Yue Wei] [Lam Yue Wei] ip Jan 31, 2020
@lamyuewei lamyuewei changed the title [Lam Yue Wei] ip [Lam Yue Wei] iP Jan 31, 2020
Copy link
Member

@katelo731 katelo731 left a 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 ]


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(" ____________________________________________________________");
Copy link
Member

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.

System.out.println(" ____________________________________________________________");
String[] stringSplit = string.split(" ");
if (string.equals("list")) {
switch (stringSplit[0]) {
Copy link
Member

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!


public class Duke {
public static void main(String[] args) {
Task[] tasks = new Task[100];
int count = 1;
int count = 0;
Copy link
Member

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.

lamyuewei and others added 20 commits February 11, 2020 02:13
…as made changes according to the feedbacks given
…ine, event, default. Updated input and expected file
Complete Level 9 Find, Modify runtest.bat to delete duke.txt in text-…
Pull Request from Branch-A-JavaDoc to Master
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.

2 participants