title: In Java, how to get strings of days of week (Sun, Mon, ..., Sat) with system's default Locale (language)
body: <p>The simplest way:</p>
  
  <pre><code>String[] namesOfDays = new String[7] {
      "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"
  };
  </code></pre>
  
  <p>This method does not use Locale. Therefore, if the system's language is not English, this method does not work properly.</p>
  
  <p>Using Joda time, we can do like this:</p>
  
  <pre><code>String[] namesOfDays = new String[7];
  LocalDate now = new LocalDate();
  
  for (int i=0; i&lt;7; i++) {
      /* DateTimeConstants.MONDAY = 1, TUESDAY = 2, ..., SUNDAY = 7 */
      namesOfDays[i] = now.withDayOfWeek((DateTimeConstants.SUNDAY + i - 1) % 7 + 1)
          .dayOfWeek().getAsShortText();
  }
  </code></pre>
  
  <p>However, this method uses today's date and calendar calculations, which are useless for the final purpose. Also, it is a little complicated.</p>
  
  <p>Is there an easy way to get Strings like <code>"Sun"</code>, <code>"Mon"</code>, ..., <code>"Sat"</code> with system's default locale?</p>