java.time.YearMonth.parse() 方法示例


java.time.YearMonth.parse() 方法示例

package com.codingdict;

import java.time.YearMonth;

public class YearMonthDemo {
   public static void main(String[] args) {

      YearMonth date = YearMonth.parse("2017-12");
      System.out.println(date);  
   }
}