for ( CitiesByState iter = new CitiesByState(); iter.hasMoreElements();; ) { City city=iter.nextElement(); println( city.population ); }