Skip to main content

If you have a generic untyped Map you can use:

    Map map = new HashMap();
    for (Map.Entry entry : ((Set<Map.Entry>) map.entrySet())) {
        System.out.println(entry.getKey() + "/" + entry.getValue());
    }

If you have a generic untyped Map you can use:

    Map map = new HashMap();
    for (Map.Entry entry : ((Set<Map.Entry>) map.entrySet())) {
        System.out.println(entry.getKey() + "/" + entry.getValue());
    }

If you have a generic untyped Map you can use:

Map map = new HashMap();
for (Map.Entry entry : ((Set<Map.Entry>) map.entrySet())) {
    System.out.println(entry.getKey() + "/" + entry.getValue());
}
Source Link
dmunozfer
  • 600
  • 1
  • 5
  • 18

If you have a generic untyped Map you can use:

    Map map = new HashMap();
    for (Map.Entry entry : ((Set<Map.Entry>) map.entrySet())) {
        System.out.println(entry.getKey() + "/" + entry.getValue());
    }