/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{

LocalDate localDate = java.time.LocalDate.of( 2011 , Month.MAY , 7 ).plusMonths( 6 ) ;
System.out.println( localDate ) ; 

LocalDate ld = LocalDate.of( 2011 , Month.MAY , 7 ) ;
Period p = Period.ofMonths( 6 ) ;
LocalDate sixMonthsLater = ld.plus( p ) ;  // Or, ld.plusMonths( 6 )
System.out.println( "ld.toString(): " + ld + " plus " + p + " = " + sixMonthsLater ) ; 

	}
}