我正在尝试创建这样的日期:
date = new Date(year-1900, mon-1, day, hrs, min, sec);
和Eclips给了我这个警告:"不推荐使用构造函数Date(int,int,int,int,int)".
对于不推荐使用的构造函数意味着什么?我能做什么?
java constructor date deprecated
很多线程都在谈论弃用的含义,但不是对方法意味着什么.有人可以解释一下吗?
java deprecated
deprecated ×2
java ×2
constructor ×1
date ×1