Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created March 1, 2017 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/dec87975f5f4cff0bfc66afc71b87dfd to your computer and use it in GitHub Desktop.
Save jezinka/dec87975f5f4cff0bfc66afc71b87dfd to your computer and use it in GitHub Desktop.
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