Here you can find the source of getAfterDay(Date date, int afterDays)
public static Date getAfterDay(Date date, int afterDays)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { private static Calendar ca = Calendar.getInstance(); public static Date getAfterDay(Date date, int afterDays) { ca.setTime(date);// w w w. ja va 2s .c om ca.add(Calendar.DATE, 1); return ca.getTime(); } }