快乐的练习时间又到啦!!
在编辑器中定义了一个数组 scores ,用于保存五名学生的考试成绩,请在第 8 行中将代码填写完整,输出数组中的第二个成绩
运行结果为: 数组中的第2个成绩为:93
public class HelloWorld { public static void main(String[] args) { // 定义一个数组,保存五名学生的成绩 int[] scores = { 78, 93, 97, 84, 63 }; // 输出数组中的第二个成绩 System.out.println("数组中的第2个成绩为:" + ); } }