What is the outcome of this nested loop in Java?
for (int i = 1; i <= 2; i++) {
for (int j = 1; j <= 2; j++) {
System.out.println(i + " " + j);
}
}
What is the outcome of this nested loop in Java?
for (int i = 1; i <= 2; i++) {
for (int j = 1; j <= 2; j++) {
System.out.println(i + " " + j);
}
}