date(String s)过时替换的方法示例

环境:jdk 1.8.0 new date(),不能转入参数。IDE显示方法过时。如图: 查源码后 得到如下解释,replaced by <code>DateFormat.parse(String s)</code>.  大概意思:date(String s) 方法被替换为 DateFormat.parse(String s) 示例: //time to String String myStrin
相关文章
相关标签/搜索