title: Java won't print inside a for loop
body: <p>I've been toying around with Java recently and I've encountered a problem:</p>
  
  <p>Whenever I put <code>System.out.println()</code> or <code>System.out.print()</code> inside a for loop, there is no output on the console. </p>
  
  <p>For example:</p>
  
  <pre><code>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 + " ");
              }
          }
      }
  }
  </code></pre>
  
  <p>Outputs:</p>
  
  <pre><code>*crickets*
  </code></pre>