SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
sdf.format(str);//str是时间字符串
在IDEA的内,在没有抛出
throws ParseException
的时候就会报unhandled exception :java.text.parseException的错误
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
网友评论