java.time.YearMonth.hashCode() 方法示例 java.time.YearMonth.getYear() 方法示例 java.time.YearMonth.isAfter() 方法示例 java.time.YearMonth.hashCode() 方法示例 package com.codingdict; import java.time.YearMonth; public class YearMonthDemo { public static void main(String[] args) { YearMonth date = YearMonth.of(2017,12); System.out.println(date.hashCode()); } } java.time.YearMonth.getYear() 方法示例 java.time.YearMonth.isAfter() 方法示例