• while ( keysIterator.hasNext() ) {
• String key = (String)keysIterator.next();
• terminal.println( " … " +
(Integer)map.get( key)) );
•}
•hasNext() returns false when at end of list
•next() returns a reference to the next Object in the list
•Iterator next method,
like TreeMap get method, returns just
an Object. Need two casts.