Here you can find the source of afterOneDay(Date depdt)
public static Date afterOneDay(Date depdt)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date afterOneDay(Date depdt) { Calendar calendar = Calendar.getInstance(); calendar.setTime(depdt);/*from w ww .j ava 2s .co m*/ calendar.add(Calendar.DAY_OF_MONTH, 1); return calendar.getTime(); } }