Here you can find the source of getSpecifiedDayAfter4Date(Date date)
public static Date getSpecifiedDayAfter4Date(Date date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date getSpecifiedDayAfter4Date(Date date) { try {/*from www. ja v a2s. co m*/ Calendar c = Calendar.getInstance(); c.setTime(date); int day = c.get(Calendar.DATE); c.set(Calendar.HOUR, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.DATE, day + 1); return new Date(c.getTimeInMillis()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } } }