解析异常是已检查的异常,因此您必须进行处理。通过掷球或尝试挡块。
public static void main (String[] args)
应该
public static void main (String[] args) throws ParseException
或者在try catch块中
try { //All your parse Operations} catch (ParseException e) { //Handle exception here, most of the time you will just log it. e.printStackTrace(); }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)