Skip to content

Instantly share code, notes, and snippets.

@paddya
Created December 6, 2011 22:17
Show Gist options
  • Save paddya/1440291 to your computer and use it in GitHub Desktop.
Save paddya/1440291 to your computer and use it in GitHub Desktop.
public Person[] getPersons() {
Person[] persons = new Person[this.getSize()];
int length = 0;
for(int i = 0; i < profiles.length; i++) {
if(profiles[i] != null) {
persons[length] = profiles[i].getOwner();
length++;
}
}
return persons;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment