-
Notifications
You must be signed in to change notification settings - Fork 315
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
[Shirley] Duke Increments #447
base: master
Are you sure you want to change the base?
Conversation
Add toolVersion block in to Gradle code sample to prevent errors.
Change file mode on `gradle` to be executable (nus-cs2103-AY1920S1#9)
Gradle defaults to an empty stdin which results in runtime exceptions when attempting to read from `System.in`. Let's add some sensible defaults for students who may still need to work with the standard input stream.
Add configuration for console applications
…support multiple task types
This reverts commit 3ff017e.
This reverts commit 3ff017e.
# Conflicts: # src/main/java/Deadline.java # src/main/java/Duke.java
src/main/java/Saved.java
Outdated
|
||
for (Task task: list) { | ||
if (task instanceof Event) { | ||
s = "E" + " | "+ task.getDone() + " | " + task.getDesc() + " | " + task.getAt(); |
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.
Rather than having multiple if else statements, you can create an abstract method on the Task class that converts the task to a suitable storage format.
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.
Good effort. Some comments for your consideration.
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 liked that you abstracted out the different commands regarding list, very neat and easy to read code, keep up the good work
No description provided.