All pastes #376004 Raw Edit

Miscellany

public text v1 · immutable
#376004 ·published 2007-02-28 19:50 UTC
rendered paste body
   Set keys = geck_id.keySet();         // The set of keys in the map.
   Iterator keyIter = keys.iterator();

   Object key = keyIter.next();  // Get the next key.
   Collection col = (Collection)geck_id.get(key);  // Get the value for that key.
   Iterator i = col.iterator();

   System.out.println( "   (" + key + "," + (i.hasNext() ? i.next() : null)+ ")" );
   String geckid = new String (key + "-" + (i.hasNext() ? i.next() : null));