java.time.Year.of() 方法示例 java.time.Year.now(ZoneId zone) java.time.Year.parse() 方法示例 java.time.Year.of() 方法示例 package com.codingdict; import java.time.Year; public class YearDemo { public static void main(String[] args) { Year year = Year.of(2017); System.out.println(year); } } java.time.Year.now(ZoneId zone) java.time.Year.parse() 方法示例