Here you can find the source of add(Calendar calendar, int calendarField, int amount)
static public Calendar add(Calendar calendar, int calendarField, int amount)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { static public Calendar add(Calendar calendar, int calendarField, int amount) { Calendar c = Calendar.getInstance(); c.setTime(calendar.getTime());// w ww . j a va2s . c o m c.add(calendarField, amount); return c; } }