Import Java.util.Calendar;/** * Function Overview: Calculate the number of days and weekly number and weekly number of years <br> * Create time: 2010-5-17 05:25:58 pm {Public Static Void Main (String [] ARGS) {Calendar C = Calendar.Getinstance (); C.Set (Calendar.year, 2010); // 2010 c.Set (calendar.month, 5); // 6月System.out.println("------------" + c.get(Calendar.YEAR) + "年" + (c.get(Calendar.MONTH) + 1) + "月The number and week of days and week ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- "); System.out.println (" Number: " + C.GetActualMaximum (Calendar.day_of_month)); Number: " + C.GetActualMaximum (Calendar.week_of_month));}}