title: Guava iterators, and iterating over a list within a list object
body: <p>I have the following example code which consists of 3-nested for-loops. </p>
  
  <pre><code>for(Continent continent : continentList) 
  {
      for(Country country : continent.getCountries())
      {
          for(City city : country.getCities())
          {
              //Do stuff with city objects
          }
      }
  }
  </code></pre>
  
  <p>Is there any way to mimic this nested for-loop using Guava and iterators? I've been trying to find a suitable example without much luck, and I was wondering if someone could help me out? A coworker of mine mentioned using filters.</p>
  
  <p>EDIT: Fixed tiny bug in example code</p>