// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class F14 {
    public static void main(String[] args) {
        Map m = new HashMap();
        m.put(new Integer(1), "a");
        m.put(new Integer(2), "bb");
        m.put(new Integer(3), "ccc");
        Iterator it = m.keySet().iterator();
        while(it.hasNext()) {
            Integer k = (Integer)it.next();
            String v = (String)m.get(k);
            System.out.println(k + " " + v);
        }
    }
}
