Here you can find the source of getSecondSemesterEndDate(Integer year)
public static Date getSecondSemesterEndDate(Integer year)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date getSecondSemesterEndDate(Integer year) { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.YEAR, year); calendar.set(Calendar.MONTH + 1, 7); calendar.set(Calendar.DAY_OF_MONTH, 1); return calendar.getTime(); }//from w w w .jav a 2 s . c o m }