Write a Java method to check whether an year (integer) entered by the user is a leap year or not
belongs to collection: Method/Function programming exercises in Java
All Answers
total answers (1)
belongs to collection: Method/Function programming exercises in Java
total answers (1)
In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
Result:
Enter a year: 2020
true
need an explanation for this answer? contact us directly to get an explanation for this answer