java.time.Year.from() 方法示例 java.time.Year.format() 方法示例 java.time.Year.get() 方法示例 java.time.Year.from() 方法示例 package com.codingdict; import java.time.Year; public class YearDemo { public static void main(String[] args) { Year date = Year.from(Year.of(2017)); System.out.println(date); } } java.time.Year.format() 方法示例 java.time.Year.get() 方法示例