I've been toying around with Java recently and I've encountered a problem:
Whenever I put System.out.println()
or System.out.print()
inside a for loop, there is no output on the console.
For example:
package experimental;
public class Main {
public static void main(String args[]) {
recur();
}
public static void recur() {
for(int x = 0; x == 10; x++) {
for(int y = 0; y == 10; y++) {
System.out.print(x + "-" + y + " ");
}
}
}
}
Outputs:
*crickets*