// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.*;
import java.text.*;

public class NextTwoWeeks {
        public static void main(String[] args) {
                test("2003-03-15", 14);
        }
        private static void test(String start, int days) {
                try {
                        DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
                        Calendar c = new GregorianCalendar();
                        c.setTime(df.parse(start));
                        for(int i = 0; i < days; i++) {
                                c.add(Calendar.DAY_OF_YEAR, 1);
                                System.out.println(df.format(c.getTime()));
                        }
                } catch (ParseException e) {
                        e.printStackTrace();
                }
        }
}
