Skip to content

Instantly share code, notes, and snippets.

Last active May 20, 2016 13:03
What would you like to do?
public List<String> getNamesOfUKCitizens(List<Person> persons)
List<String> allUKCitizens = new ArrayList<>();
for(Person p : persons)
if(p.getCitizenship() == Citizenship.UK){
return allUKCitizens;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment