java.time.Year.atMonth(Month month)


java.time.Year.atMonth(Month month)

package com.codingdict;



import java.time.YearMonth;

import java.time.Month;

import java.time.Year;



public class YearDemo {

   public static void main(String[] args) {



      Year year = Year.of(2015);



      YearMonth date = year.atMonth(Month.OCTOBER);

      System.out.println(date);  

   }

}