title: Check if nested iterator variables sum to a certain number
body: <p>I want to print an asterisk when <code>i + j</code> equals a specified number, but my code never prints one:</p>
  
  <pre><code>public class A{
      public static void main(String[]args){
          for (int i = 5; i &lt; 10; i++) { 
              for (int j = 5; j &lt; 10; j++) { 
                  if ( i == j || ( i+j == 7 )) { 
                      System.out.printf("*"); 
                  } else { 
                      System.out.printf(""); 
                  } 
              } 
              System.out.println(); 
          } 
      }
  }        
  </code></pre>