public class MainClass { public static void main(String[] argv) { for (int i = 0; i < 2; i++) { for (int j = 0; j < 3; j++) { if (i == j) { continue; } System.out.println("i = " + i + " j = " + j); } } } }