I am trying to find the days of the week using DateFormatSymbols and here is a short program
String[] shortWeekdays = new DateFormatSymbols().getShortWeekdays(); System.out.println(shortWeekdays.length); for (int i = 0; i < shortWeekdays.length; i++) { String shortWeekday = shortWeekdays[i]; System.out.println("shortWeekday = " + shortWeekday); }
and he gives me the following result
- shortWeekday =
- shortWeekday = Sun
- shortWeekday = Mon
- shortWeekday = Tue
- shortWeekday = Wed
- shortWeekday = Thu
- shortWeekday = Fri
- shortWeekday = Sat
I'm not sure why he gives a total length of 8, while she should give her 7
Umesh awasthi
source share