Java examples for java.util:Year
get Finish Current Year
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static void main(String[] argv) throws Exception { System.out.println(getFinishCurrentYear()); }//from w w w . j a va2 s . co m public static Date getFinishCurrentYear() { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.DAY_OF_MONTH, 31); calendar.set(Calendar.MONTH, Calendar.DECEMBER); return calendar.getTime(); } }