### Inline Java Map For Loop

`Sub Process_Globals
...
Private joMap As JavaObject = Me
...
End Sub`
`Sub MapForEachInlineJava
Dim MyMap As Map = CreateMap("Key1":"Value1", "Key2":"1", "Key3":"True")
joMap.RunMethod("LoopMap", Array(MyMap))
End Sub`
If Java
import java.util.Map;
import java.util.Map.Entry;
//Looping over a map which has strings as values
public static void LoopMap(Map map) {
for (Map.Entry entry : map.entrySet()) {
System.out.println("Key : " + entry.getKey() + " Value : " + entry.getValue());
}
}
End If

Changed: , Category: Inline Java, File: T6C201M1478.htm, ID: 1478