java.time.Year.plus() 方法示例 java.time.Year.parse(CharSequence text, DateTimeFormatter formatter) java.time.Year.plus(TemporalAmount amountToAdd) java.time.Year.plus() 方法示例 package com.codingdict; import java.time.Year; import java.time.temporal.ChronoUnit; public class YearDemo { public static void main(String[] args) { Year date = Year.parse("2017"); Year date1 = date.plus(10, ChronoUnit.YEARS); System.out.println(date1); } } java.time.Year.parse(CharSequence text, DateTimeFormatter formatter) java.time.Year.plus(TemporalAmount amountToAdd)