package com.study.demo2; public class Main { public static void main(String[] args) { int[] scores = {85, 90, 78, 92, 88, 76, 95, 89, 79, 94}; Student student = new Student("5001", "张三", scores); System.out.println("平均分: " + student.getAverage()); System.out.println("最高分: " + student.getMaxScore()); System.out.println("等级: " + student.getGrade()); } }