java.time.Year.plus(TemporalAmount amountToAdd) java.time.Year.plus() 方法示例 java.time.Year.plusYears() 方法示例 java.time.Year.plus(TemporalAmount amountToAdd) package com.codingdict; import java.time.Period; import java.time.Year; public class YearDemo { public static void main(String[] args) { Year date = Year.parse("2017"); Year date1 = date.plus(Period.of(10,0,0)); System.out.println(date1); } } java.time.Year.plus() 方法示例 java.time.Year.plusYears() 方法示例