Name (print *CLEARLY*): _________________________________________________


Student ID (print *CLEARLY*; 1 digit per underline): _____ _____ _____ _____ _____ _____

CSE 231s Quiz 24: Forall Phased

In the code below, i will take on the values 1 and 2 and j will take on the values 1 and 2.
Write equivalent pseudeocode for the code below using non-phased forall loops:
That is: just use however many standard forall loops you need to produce an equivalent parallel program. Do not use forallPhased or next.

List<Integer> iValues = Arrays.asList(1, 2);
List<Integer>
jValues = Arrays.asList(1, 2);
forallPhased(iValues, (i) -> {
      
for (int j : jValues) {
              System.out.print(i + "" + j + "A,");
              next();
              System.
out.print(i + "" + j + "B,");
       }
});