-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix bug #116
Fix bug #116
Conversation
# Conflicts: # omni.txt # src/main/java/seedu/duke/Parser.java
TravelActivity activity; | ||
switch (type) { | ||
case "accommodation": | ||
activity = new Accommodation(description, date, duration, tag); | ||
activity = new Accommodation(description, date, duration, tag, expense); |
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 job adding expense
@@ -85,4 +85,16 @@ public static void printDateTimeExceptionError(){ | |||
public static void printSavingError(){ | |||
System.out.println("Something went wrong when saving the file"); | |||
} | |||
|
|||
public static void printActivity(TravelActivity activity, int foundCounter) { | |||
String checked = activity.getActivityStatus()? "[X]" : "[ ]"; |
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 use of SLAP
} else if (type.equals("Landmark") && travelActivities.get(iterator) instanceof Landmark && | ||
!travelActivities.get(iterator).toString().isEmpty()) { | ||
isFound = true; | ||
foundCounter += 1; |
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 use of SLAP
closes #115