Hello everyone, and again a novice developer with you)))
Tell me how to push my code into a loop so that it displays all the high years for the last 10 years)
I know how to solve the problem without class Time, but the teacher asks that the class be used Time.
import java.time.*; public class LeapYear { public static void main(String[] args) { boolean leapYearCheck = LocalDate.parse("2012-01-01").isLeapYear(); System.out.println(leapYearCheck); } }