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

import java.util.*;

/* 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
	{
    	List<String> orders = Arrays.asList("order1", "order2", "order3", "order4");
		List<String> rules = Arrays.asList("rule1", "rule2", "rule3");
		orders.stream().parallel().forEach(order->{
			rules.forEach(rule->{
				System.out.println(order+"-"+rule);
			});
		});
	}
}