package day01;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Test06 {
public static void main(String[] args) {
System.out.println("程序开始");
String strDate = "2020-10-30";
SimpleDateFormat s = new SimpleDateFormat("");
try {
Date date = s.parse(strDate);
} catch (ParseException e) {
e.printStackTrace();
}
String name = "www";
try {
int sam = Integer.parseInt(name);
} catch (NumberFormatException e) {
e.printStackTrace();
}
System.out.println("-------------");
Test06 te = new Test06();
te.run();
System.out.println("程序结束");
}
public static void run() throws NullPointerException {
Integer ppd = null;
ppd.intValue();
System.out.println(ppd.intValue());
}
}