Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Mar 1, 2017
Embed
What would you like to do?
private ArrayList<String> getListOfWeekdays() {
ArrayList<String> weekdays = new ArrayList<String>();
for (int i = 1; i <= 7; i++) {
weekdays.add(new DateFormatSymbols().getWeekdays()[i]);
}
Collections.rotate(weekdays, 1);
return weekdays;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment