code: public static String mapToString(Map map)
      {
          Set entries = map.entrySet();
          Iterator iter = entries.iterator();
          StringBuffer buff = new StringBuffer();
          while (iter.hasNext())
          {
              Map.Entry entry = (Map.Entry) iter.next();
              buff.append("[" + entry.getKey() + "," + entry.getValue() + "]\n");
          }
          return buff.toString();
      }
docs: spit out each name/value pair