Initial commit

This commit is contained in:
2025-11-06 10:29:13 +08:00
commit 0becd14830
318 changed files with 7145 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
graph TD
A[开始] --> B{第一个 try 块};
B --> C{计算 result = 8 / 0};
C -- ArithmeticException --> D[捕获 ArithmeticException];
D --> E[打印 “算术异常”];
E --> F{第二个 try 块};
C --> F;
F --> G{获取 null 字符串的长度};
G -- NullPointerException --> H[捕获 NullPointerException];
H --> I[打印 “空指针异常”];
I --> J{第三个 try 块};
G --> J;
J --> K{创建大小为4的float数组 arr};
K --> L{"访问 arr[4]"};
L -- ArrayIndexOutOfBoundsException --> M[捕获 ArrayIndexOutOfBoundsException];
M --> N[打印 “数组下标越界异常”];
N --> O{第四个 try 块};
L --> O;
O --> P{将字符串 '23U' 转换为 double};
P -- NumberFormatException --> Q[捕获 NumberFormatException];
Q --> R[打印 “字符串转换异常”];
R --> S[结束];
P --> S;