Skip to content

Instantly share code, notes, and snippets.

@biodunalfet
Created June 7, 2016 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biodunalfet/f89c2bfdb4a461bceb674e263b7b578b to your computer and use it in GitHub Desktop.
Save biodunalfet/f89c2bfdb4a461bceb674e263b7b578b to your computer and use it in GitHub Desktop.
public void setParent(){
for (int x = 0; x < datas.size(); x++){
Person person = datas.get(x);
general.add(person);
children.add(0);
person.setChildrenVisible(false);
Friend[] friends = person.getFriends();
for (int y = 0; y < friends.length; y++){
Friend f = friends[y];
f.setParentID(String.valueOf(x));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment