public String authorMapIterator(Map m, int i) {
        authorMap = m;
        Set s = m.entrySet();
        Iterator it = s.iterator();

        while (it.hasNext()) {
            Map.Entry e = (Map.Entry)it.next();
            int key = (Integer)e.getKey();
            String value = (String)e.getValue(); 
            //System.out.println(key);
            if (i == key) {
                output = value;
                break;
            } 
            else {
                output = "Author not found";
            }
        }
        return output;
    } // end method authorMapIterator