Skip to content
sneppets

sneppets

  • Privacy
calculate leap year

Java : Calculate Leap Year and Number of days in a Year

February 9, 2020February 12, 2020 Editorial StaffLeave a Comment on Java : Calculate Leap Year and Number of days in a Year

Below program shows you how to calculate or check if a year is leap year or not and how to check number of days in a year.

Java Calendar, java, leap year
sneppets-java8

Format LocalDate to String or int with Month and Day in double digit

January 30, 2020February 12, 2020 Editorial StaffLeave a Comment on Format LocalDate to String or int with Month and Day in double digit

Let’s say you wanted to format LocalDate like yyyyMMdd with date’s month and day values in double digit to String or int, then follow this tutorial.

Java Calendar, Date, java, LocalDate
Copyright © 2018 Sneppets. All Rights Reserved