2013-11-27 算某月有幾天 605 0 JAVA 摘要:算某月有幾天 //算某月有幾天 Calendar cal = Calendar.getInstance(); cal.set(Calendar.MONTH,Integer.parseInt("2")-1); System.out.println("六月共有幾日"+cal.getActualMaximum(Calendar.DAY_OF_MONTH)); 回首頁