Created
September 7, 2011 22:49
-
-
Save riley-dog/1202041 to your computer and use it in GitHub Desktop.
Downstairz' Random Thoughts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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