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