Skip to content

Instantly share code, notes, and snippets.

@riley-dog
Created September 7, 2011 22:49
Show Gist options
  • Save riley-dog/1202041 to your computer and use it in GitHub Desktop.
Save riley-dog/1202041 to your computer and use it in GitHub Desktop.
Downstairz' Random Thoughts
People failedPeople = new People();
People successPeople = new People();
Goals goals = new Goals();
String[] peopleYouKnow = {…};
for(Goals goal : goals)
{
for (String peep : peopleYouKNow)
{
String typeOfPerson = goals.people(peep);
if(typeOfPerson.equals("failed"))
{
failedPeople.put("person","'person");
}
else if(typeOfPerson.equals("success"))
{
successPeople.put("person", "person");
}
}
}
//keep this foo's
successPeople;
//remove these foo's
if(failedPeople.count() > 0)
{
for(People failed : failedPeople)
{
failed.remove(); //it's just that simple!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment