和所有的新人一起分享:
public static void main(String[] args) {
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy-MM-dd");
List<String> list = new ArrayList<String>();
for(int i=0;i<100;i++){
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DAY_OF_MONTH, +i);
list.add(format.format(cal.getTime()));
}
for(String date : list){
System.out.println(date);
}
}