public static Date daysAfterNow(int numDays){
  if (numDays <= 0) {
    throw new IllegalArgumentException();
  }
  final Calendar cal=new GregorianCalendar();
  cal.setTime(new Date());
  cal.add(Calendar.DAY_OF_YEAR,numDays);
  return cal.getTime();
}

public static Date daysAfterNow ( int numDays ) { if ( numDays <= 0 ) { throw new IllegalArgumentException ( ) ; } final Calendar cal = new GregorianCalendar ( ) ; cal . setTime ( new Date ( ) ) ; cal . add ( Calendar . DAY_OF_YEAR , numDays ) ; return cal . getTime ( ) ; }
method to return a date instance which is exactly numdays days after the current point in time .
