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

finished list /date /sort #218

Merged
merged 3 commits into from
Apr 11, 2024
Merged

Conversation

annnniexu
Copy link

No description provided.

@annnniexu annnniexu linked an issue Apr 11, 2024 that may be closed by this pull request
int finalActivityCount = noOfActivities;
assert finalActivityCount == activityCount : "Index out of bounds while listing activities";
assert finalActivityCount >= activityCount : "Index out of bounds while listing activities";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion will cause it to fail as it will check that finalActivityCount >= activityCount. Since that is false it will cause the assertion to happen

@@ -42,6 +52,18 @@ public void loadFileContents(TravelActivityList list) throws FileNotFoundExcepti
}
}

/**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job adding javadocs

*/
public void listTravelActivities(){
public void listTravelActivities(boolean sort, boolean filterDate, LocalDate date){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good enhancement to the current list feature

@daryltay415 daryltay415 merged commit 152cedd into AY2324S2-CS2113-T12-4:master Apr 11, 2024
3 checks passed
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.

sort activities by date and time
2 participants