找不到JAVA中Date的无参构造器?
在idea中编写如下代码时报错 @Test public void test2(){ Date d1 = new Date(); }显示找不到Date的无参构造器,利用alt+enter也无法解决问题,所以开始查看Date源码: public Date(int year, int month, int day) { super(year, month, day); } public Date(long date) { .
原创
2022-03-11 09:52:57 ·
1194 阅读 ·
0 评论