-
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-2]Tan Jiaqing #442
base: master
Are you sure you want to change the base?
Conversation
Ready for review |
Nice enhancement! Might want to add your JUnit and I/O tests too! |
Just a minor nitpick, but I think it would be nicer to use the Set's iterator by using a for loop ( |
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! No major issues. 👍
if (!Collections.disjoint(wordsInName, keywords)) { | ||
matchedPersons.add(person); | ||
} | ||
} | ||
return matchedPersons; | ||
} | ||
|
||
private Set<String> convertLowercase(Set<String> keywords) { |
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.
Try to follow naming convention, i.e. convertToLowercase
Add case-insensitive feature to find function