-
Notifications
You must be signed in to change notification settings - Fork 166
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
[W5.7][F11-4]Ng Yuan Yun Nigel #445
base: master
Are you sure you want to change the base?
Conversation
@@ -72,7 +72,8 @@ public UniquePersonList getAllPersons() { | |||
* Returns a new UniquePersonList of all persons in the address book at the time of the call sorted in alphabetical order. | |||
*/ | |||
public UniquePersonList getSortedAllPersons() { | |||
return new UniquePersonList(allPersons).sort(); | |||
UniquePersonList toSort = new UniquePersonList(allPersons); | |||
return toSort.sort(); |
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.
Doesn't update the main list of persons? Only sort the new list created (the copy of the main list)?
@@ -160,7 +165,7 @@ Format: `clear` | |||
|
|||
Exits the program. + | |||
Format: `exit` | |||
|
|||
l |
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.
There is the extra "l" which may have affected the presentation, and GitHub's ability to session the paragraph properly
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.
It is encouraged to update the JUnit tests if you have not done so. Please close this PR after reading my comments.
No description provided.