calendar.setTime (new Date ());
我这样初始化日历就不行
报错:
Example5_15.java:9: setTime(java.util.Date) in java.util.Calendar cannot be appl
ied to (Date)
日历.setTime (new Date ());
^
1 error
calendar.setTime (new Date ()); 我这样初始化日历就不行 报错: Example5_15.java:9: setTime(java.util.Date) in java.util.Calendar cannot be appl ied to (Date) 日历.setTime (new Date ()); ^ 1 error 用calendar.set(2006,4,28); 却是可以的,不知道为什么哦??? 小弟初学JAVA 急!!!!!!