import java.lang.System; for (i in [1..9]) { for (j in [1..9]) { System.out.printf("%d * %d = %2d%n", [i, j, (i * j)]); } }