/* package whatever; // don't place package name! */

import java.util.stream.Stream;
import java.util.Map;
import java.util.HashMap;
import java.util.ArrayList;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Map<String, Integer> map = new HashMap<>();
		map.put("a", 1);
		map.put("b", 2);
        new ArrayList(map.values()).parallelStream()
              .peek(x -> System.out.println("processing "+x+" in "+Thread.currentThread()))
              .forEach(System.out::println);
	}
}