@Test
public void testWithProcedureClosure()
{
// [[[start:iteration-maps-using-procedures]]]
final IntCharOpenHashMap map = prepare(10);
// Maps also support iteration through [keyType][valueType]Procedure interfaces.
// The apply() method will be called once for each key/value pair in the map.
// Iteration from head to tail
map.forEach(new IntCharProcedure()
{
public void apply(int key, char value)
{
System.out.println(key + " -> " + value);
}