java.lang.ArrayIndexOutOfBoundsException Dear 丶 2022-04-13 14:37 199阅读 0赞 **报错提醒:** Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 3 at five\_p.EmployeeTest.main(EmployeeTest.java:13)![在这里插入图片描述][watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NleHlsdW5h_size_16_color_FFFFFF_t_70] -------------------- ## 解决方案 ## * 数组越界,检查数组角标是否越界! * 修改后正常 ![在这里插入图片描述][watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NleHlsdW5h_size_16_color_FFFFFF_t_70 1] [watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NleHlsdW5h_size_16_color_FFFFFF_t_70]: /images/20220413/3f567b2c01a748e49216b0f3c5432f00.png [watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NleHlsdW5h_size_16_color_FFFFFF_t_70 1]: /images/20220413/50f892bb36bf48ec879d0082952d3e39.png
还没有评论,来说两句吧...