美文网首页
unhandled exception :java.text.p

unhandled exception :java.text.p

作者: 木有鱼丸啦 | 来源:发表于2018-10-26 14:38 被阅读0次

SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");

sdf.format(str);//str是时间字符串

在IDEA的内,在没有抛出

throws ParseException

的时候就会报unhandled exception :java.text.parseException的错误

相关文章

网友评论

      本文标题:unhandled exception :java.text.p

      本文链接:https://www.haomeiwen.com/subject/bfoktqtx.html