image.png

part a

public static boolean isLeapYaer(int year)

Write the static method isLeapYear(int year) which returns true or false.

a year is leap year if

example calls:

part b

public static int numbrOfLeapYears(int year1, int year2)