Here you can find the source of getCalendar()
private static Calendar getCalendar()
//package com.java2s; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { private static Calendar getCalendar() { Calendar calendar = GregorianCalendar.getInstance(); calendar.setTime(new Date()); return calendar; }/*from w w w . java 2 s . c om*/ }