Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How To Eat An Elephant In Java

DZone's Guide to

How To Eat An Elephant In Java

·
Free Resource
How do you eat an elephant? Well, 'bite by bite', they told me. In Java, this may look like this:


  Elephant elephant = ...; // get the elephant from somewhere

  while (!elephant.isEatenCompletely()) {
    elephant.haveOneBite();
  }



Why am I writing this? Well, simply to test my dzone account ;)
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}