Skip to content

Instantly share code, notes, and snippets.

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 RichardWarburton/8446478 to your computer and use it in GitHub Desktop.
Save RichardWarburton/8446478 to your computer and use it in GitHub Desktop.
Stream.of(Month.values())
.map(month -> LocalDate.now()
.with(month)
.with(lastDayOfMonth()))
.forEach(date -> System.out.println(date.getDayOfWeek()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment