-
Notifications
You must be signed in to change notification settings - Fork 111
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
[T2A4][W13-A3]Melvin Tan #300
base: master
Are you sure you want to change the base?
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.
@Melvin-Tan Some comments added. Please close the PR after reading comments.
// Creates a copy of allPersons for sorting so ALL_PERSONS do not mutate. | ||
ArrayList<String[]> toBeDisplayed = new ArrayList<String[]>(allPersons); | ||
Collections.sort(toBeDisplayed, (person1, person2) -> person1[0].compareTo(person2[0])); | ||
showToUser(toBeDisplayed); |
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.
Take note of the usage of magic numbers here
* | ||
* @return feedback display message for the operation result | ||
*/ | ||
private static String executeListAllPersonsInAddressBookSortedByName() { |
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 in adding the relevant comments and changes for the tests.
No description provided.