How to eat an elephant in Java
1 2 Elephant elephant = ...; // get the elephant from somewhere 3 4 while (!elephant.isEatenCompletely()) { 5 elephant.haveOneBite(); 6 } 7
Why am I writing this? Well, simply to test my dzone account ;)
DZone Snippets > chris-o > test
13469 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 Elephant elephant = ...; // get the elephant from somewhere 3 4 while (!elephant.isEatenCompletely()) { 5 elephant.haveOneBite(); 6 } 7