package calendar;
import java.util.Calendar;
Calendar c2 = Calendar.getInstance();
String we = week(c2.get(Calendar.DAY_OF_WEEK));
System.out.println(we);
}
public static String week(int a) {
}
}
import java.util.Calendar;
public class CalendarText1 {
public static void main(String[] args) {Calendar c2 = Calendar.getInstance();
String we = week(c2.get(Calendar.DAY_OF_WEEK));
System.out.println(we);
}
public static String week(int a) {
String weeks[] = { "", " 星期日 ", "星期一 ", "星期二", "星期三", " 四", " 五 ", "六 " };
return weeks[a];}
}