public class YearClass { public static void main(String[] args) { Year y = Year.now(); System.out.println(y); Year y1 = Year.of(2017); LocalDate l = y1.atDay(123); System.out.println(l); Year year = Year.of(2017); System.out.println(year.length()); Year year1 = Year.of(2016); System.out.println(year1.isLeap()); } }
No comments:
Post a Comment