Here you can find the source of getCalendarFormYear(int year)
Parameter | Description |
---|---|
year | a parameter |
private static Calendar getCalendarFormYear(int year)
//package com.java2s; import java.util.Calendar; public class Main { /**//from w w w . ja v a 2 s . co m * get Calendar of given year * * @param year * @return */ private static Calendar getCalendarFormYear(int year) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); cal.set(Calendar.YEAR, year); return cal; } }