Here you can find the source of addDayToCalendar(Calendar calendar, int day)
public static Calendar addDayToCalendar(Calendar calendar, int day)
//package com.java2s; /*/*from ww w . ja va2s. c om*/ * @ (#) CalendarUtils.java * * Copyright (c) 2010 ClickDiagnostics Inc. All Rights Reserved. This software is the * confidential and proprietary information of ClickDiagnostics ("Confidential * Information"). You shall not disclose such Confidential Information and shall * use it only in accordance with the terms of the license agreement you entered * into with ClickDiagnostics. */ import java.util.Calendar; public class Main { public static Calendar addDayToCalendar(Calendar calendar, int day) { calendar.add(Calendar.DAY_OF_MONTH, day); return calendar; } }