今天是星期1 ,200天后是星期几?
package com.kingsoft.main;
import java.util.Calendar;
public class DateSuanFa {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Calendar c = Calendar.getInstance();
c.add(Calendar.DAY_OF_YEAR, 200);
System.out.println(c.get(Calendar.DAY_OF_WEEK));
try {
System.out.format("%1$ tF", c);
} catch (Exception e) {
// TODO: handle exception
}
}
}