Stuff
public text v1 · immutable public static <T> void printMap(Iterator<T> it)
{
while(it.hasNext())
{
T obj = it.next();
if( obj instanceof Map.Entry)
{
Map.Entry ent = (Map.Entry) obj;
System.out.println(ent.getKey() + " => " + ent.getValue());
} else
{
throw new IllegalArgumentException("Not an map Iterator");
}
}
}