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

[T2A4][W13-A3]Melvin Tan #300

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

Conversation

Melvin-Tan
Copy link

No description provided.

Copy link

@K1ang K1ang left a 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);
Copy link

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() {
Copy link

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.

@K1ang K1ang added the Reviewed label Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants