Here you can find the source of getSpecifiedDayAfter(String specifiedDay)
public static String getSpecifiedDayAfter(String specifiedDay) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public class Main { public static String getSpecifiedDayAfter(String specifiedDay) throws ParseException { Calendar c = Calendar.getInstance(); Date date = null;/*from w ww. jav a 2 s . c om*/ date = new SimpleDateFormat("yy-MM-dd").parse(specifiedDay); c.setTime(date); int day = c.get(Calendar.DATE); c.set(Calendar.DATE, day + 1); String dayAfter = new SimpleDateFormat("yyyy-MM-dd").format(c.getTime()); return dayAfter; } }