哦 ~~~~原来如此,难怪我的工具编译时老来这么一句 Note: C:\Documents and Settings\CAOLILI\My Documents\Day.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 谢谢两位拉~~~
以下是引用rngguliu在2005-12-30 17:28:00的发言: private Date date; public Day(int year, int month, int date) { y = year -1900; m = month - 1; d = date; date = new Date(y, m, d); }