Skip to content

Instantly share code, notes, and snippets.

Last active May 20, 2016 13:01
What would you like to do?
private static List<Person> getAllWomen(List<Person> persons) {
List<Person> men = new ArrayList<>();
for(Person person : persons)
if(person.getGender() == Gender.FEMALE)
return men;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment