Java tutorial
import java.time.Year; import java.time.temporal.ChronoField; public class Main { public static void main(String[] args) { Year y = Year.of(2014); Year l = y.with(ChronoField.YEAR, 2013); System.out.println(l); } }