title: Set if-condition for new line every 10th character
body: <p>I'd like to enter a new line after the 10th array. My array is filled from 1-365 <code>(day[0]=1, day[1]=2, ..)</code>.</p>
  
  <p>This is my code and i stuck at creating the <code>if-condition</code>:</p>
  
  <pre><code>int day[] = new int[365];
  
          for(int i=0; i&lt;day.length; i++){
              day[i] = i+1;
              System.out.print(day[i]+" ");
              if((i % 10) == 0){
                  System.out.println();
              }
          }
  </code></pre>
  
  <p>This should be my console output:</p>
  
  <pre><code>1 2 3 4 5 6 7 8 9 10 
  11 12 13 14 15 16 17 18 19 20 
  21 22 23 24 25 26 27 28 29 30 
  31 32 33 34 35 36 37 38 39 40 
  41 42 43 44 45 46 47 48 49 50 
  51 ...
  </code></pre>
  
  <p>What I'm getting:</p>
  
  <pre><code>1 
  2 3 4 5 6 7 8 9 10 11 
  12 13 14 15 16 17 18 19 20 21 
  22 23 24 25 26 27 28 29 30 31 
  32 33 34 35 36 37 38 39 40 41 
  42 43 44 45 46 47 48 49 50 51 
  </code></pre>