int x = 1; while (x <= 10) { int y = 1; while (y <= 10) { System.out.print("[" + x + "] = [" + y + "]"); ++y; } ++x; }