package edu.rice.comp322; import static edu.rice.hj.Module0.forallPhased; import static edu.rice.hj.Module0.launchHabaneroApp; import static edu.rice.hj.Module0.next; /** * Solution to Worksheet 5. * * @author Shams Imam */ public final class Worksheet12 { /** * Disallow instance creation of utility class. */ private Worksheet12() { super(); } /** * The main method. * * @param args an array of {@link String} objects. */ public static void main(final String[] args) { launchHabaneroApp(() -> { final String[] input = {"ab", "cde", "f"}; final int m = input.length; forallPhased(0, m - 1, (i) -> { for (int j = 0; j < input[i].length(); j++) { System.out.println("(" + i + "," + j + ")"); next(); } }); System.out.println("A"); }); } }