import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;
public class CreateDate {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("请输入年份:");
String year = s.next();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar cd = Calendar.getInstance();
String first = year + "-01-01";
Date date;
String str = null;
try {
date = sdf.parse(first);
for (int i = 0; i < 365; i++) {
cd.setTime(date);
cd.add(Calendar.DAY_OF_YEAR, i);
Date dt = cd.getTime();
str = sdf.format(dt);
System.out.println(str);
}
if(str.substring(8, 10).equals("30")){
System.out.println(str.substring(0, 8) + "31");
}
} catch (ParseException e) {
e.printStackTrace();
}
}
}