//獲取當前星期幾
Calendar calendar;
calendar = Calendar.getInstance();
System.out.println(calendar);
System.out.println("當前月份:"+calendar.DAY_OF_MONTH);
String week;
week = calendar.get(calendar.DAY_OF_WEEK) - 1 + "";
if ("0".equals(week)) {
week = "7";
}
System.out.println("當前星期:"+week);
