System.out.println("请输入学生姓名,java、html、sql的成绩(”,“号分开)");
String info=reader.next();
String[] a=info.split(",");
this.name=a[0];
this.java=Double.parseDouble(a[1]);
this.html=Double.parseDouble(a[2]);
this.sql=Double.parseDouble(a[3]);
this.sumScore=this.java+this.html+this.sql;
this.avgScores=Math.round((this.sumScore/3)*10)/10.0;

Index 3 out of bounds for length 3(java)
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-