title: Determine which day of week is each date of the month
body: <p>I want to create a calendar with Java 8. So far I have this:</p>
  
  <pre><code>YearMonth yearMonthObject = YearMonth.of(year, month);
  int daysOfCurrentMonth = yearMonthObject.lengthOfMonth();
  
  int i = 1;
  ArrayList&lt;Integer&gt; Dayes = new ArrayList&lt;Integer&gt;();
  for(i=1; i&lt;=daysOfCurrentMonth; i++){
      Dayes.add(i);
  }
  
  Dayes.forEach(value -&gt; System.out.print(value));
  </code></pre>
  
  <p>which prints the days of the current month (for example May).</p>
  
  <p>How can I determine that 1 is Sunday, 2 is Monday, 3 is Tuesday, ..., 8 is   Sunday (next week), etc.?</p>