import java.util.Calendar;/*nowjava.com 提 供*/
public class Main {
public static void main(String[] args) {
//create Calendar instance
Calendar now = Calendar.getInstance();
System.out.println("Current date : " + (now.get(Calendar.MONTH) + 1)
+ "-"
+ now.get(Calendar.DATE)
+ "-"
+ now.get(Calendar.YEAR));
//create an array of days
String[] strDays = new String[]{
"Sunday",
"Monday",
/*
时代Java - nowjava.com
*/
"Tuesday",
"Wednesday",
"Thusday",
"Friday",
"Saturday"
};
/**代码未完, 请加载全部代码(NowJava.com).**/