public static Date add(final Date inputDate,final int addType,final int addAmount){
  final Calendar calendar=Calendar.getInstance();
  calendar.setTime(inputDate);
  calendar.add(addType,addAmount);
  return calendar.getTime();
}

public static Date add ( final Date inputDate , final int addType , final int addAmount ) { final Calendar calendar = Calendar . getInstance ( ) ; calendar . setTime ( inputDate ) ; calendar . add ( addType , addAmount ) ; return calendar . getTime ( ) ; }
adds given number of days / months / years to given date and returns the resulting date .
