Skip to content

Instantly share code, notes, and snippets.

@felipeelias
Created April 17, 2013 12:38
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
LaundryMachine washer = getLaundryMachine();
washer.open();
List<Unerdwear> pileOfUnerdwear = gatherUnerdwear();
for (Unerdwear underwear : pileOfUnerdwear) {
if (underwear.isDirty() OR underwear.isSticky()) {
washer.load(underwear);
} else {
putOn(underwear);
while (undewear.isntDirty()) {
partyLikeIts1998();
}
}
}
washer.close();
if (washer.isLoaded()) {
washer.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment