Calendar.ear Java

import java.time.LocalDate;  
import java.time.Year;  
public class YearExample{  
  public static void main(String[] args) {  
    Year y = Year.of(2017);  
    LocalDate l = y.atDay(123);  
    System.out.println(l);  
  }  
}  
Powerful Polecat