calendar.set(Calendar.DAY_OF_MONTH, 1);
    private static void generateCalendarNames(Properties props, Locale locale) {        Calendar calendar = Calendar.getInstance(locale);        SimpleDateFormat mediumMonthFormatter = new SimpleDateFormat("MMM", locale);        SimpleDateFormat longMonthFormatter = new SimpleDateFormat("MMMM", locale);        for (int i = 0; i < 12; i++) {            calendar.set(Calendar.MONTH, i);            Date date = calendar.getTime();            props.setProperty("month"+MONTHS[i]+"Medium", mediumMonthFormatter.format(date));            props.setProperty("month"+MONTHS[i]+"Long", longMonthFormatter.format(date));        }        SimpleDateFormat mediumWeekdayFormatter = new SimpleDateFormat("EEE", locale);        SimpleDateFormat longWeekdayFormatter = new SimpleDateFormat("EEEE", locale);        calendar = Calendar.getInstance(locale);                for (int i = 0; i < 7; i++) {            calendar.set(Calendar.DAY_OF_WEEK, i);            Date date = calendar.getTime();            props.setProperty("weekday"+WEEKDAYS[i]+"Medium", mediumWeekdayFormatter.format(date));            props.setProperty("weekday"+WEEKDAYS[i]+"Long", longWeekdayFormatter.format(date));        }       int firstDayOfWeek = calendar.getFirstDayOfWeek();       props.setProperty("firstDayOfWeek", Integer.toString(firstDayOfWeek));    } // generateCalendarNames(Properties,Locale)