title: Multidimensional array calendar, how to fix simple issues
body: <p>I am trying to fix my Calendar (Month-March):</p>
  
  <pre><code>Mon Tue Wed Thu Fri Sat Sun 
  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  0   0   0   0   
  32  0   0   0   0   0   0   
  </code></pre>
  
  <p>1) The first problem is that I can't stop counting after 31, as you can see I have <code>0 0 0 0 0</code> but in this place I would like to have empty space.</p>
  
  <p>2) Second problem is that March is starting from Thursday, not from Monday, how to start counting days from Thursday?. This is my code:</p>
  
  <pre><code>public class MyPoorCalendar{
      public static void main(String[] args) {
          int firstday = 1;
          int mycalendar[][] = new int[6][7];
          String nameOfTheWeeks = "Mon\t" + "Tue\t" + "Wed\t" + "Thu\t" + "Fri\t" + "Sat\t" + "Sun\t";
          System.out.println(nameOfTheWeeks);
  
          //initializing
          for (int i = 0; i &lt; 6; i++) {
              for (int j = 0; j &lt; 7; j++) {
                  mycalendar[i][j] = firstday++;
                  if (firstday &gt; 31) {
                      break;
                  }
              }
          }
          //printing
          for (int i = 0; i &lt; 6; i++) {
              for (int j = 0; j &lt; 7; j++) {
                  System.out.print(mycalendar[i][j] + "\t");
                  if (j == 6) {
                      System.out.println();
                  }
              }
          }
      }
  }
  </code></pre>