java Exception
微风-cd
这个作者很懒,什么都没留下…
展开
-
reached end of file while parsing
关于reached end of file while parsing错误匹配的括号–你可以看到你的代码中的每一个开着的括弧,它可能是一个方括号,大括弧或圆括号,你需要一个与之匹配的关闭的括弧。原创 2021-10-31 14:40:01 · 11725 阅读 · 0 评论 -
error: unreachable statement
error: unreachable statement(不可达语句)该错误原因正如其名,编译器永远也不会执行它下面的几种情况会出现 unreachable statement:(1)在reutrn语句后写语句。(2)在throw语句后写语句。(3)break、continue语句之后定义语句。(4)“\u10100”//合法,相当于‘\u1010’和字符串“0”。(5)移位运算符可以用于long int char short byte。(6)类的访问控制符可以是public或什么都不加。原创 2021-08-22 19:27:41 · 2701 阅读 · 1 评论 -
java.lang.arrayindexoutofboundsexception: Index 13 out of bounds for length 13
java.lang.arrayindexoutofboundsexception: Index 13 out of bounds for length 13(数组越界)当你使用不合法的索引访问数组时会报数组越界这种错误,数组arr的合法错误范围是[0, arr.length-1];当你访问这之外的索引时会报这个错。例如:while(n>0&&n<length){ if(num>nums[n]){ if(num<nums[n+1]){原创 2021-08-22 00:41:14 · 6575 阅读 · 0 评论