mirror of
https://github.com/Dichgrem/Java.git
synced 2025-12-17 12:51:59 -05:00
12 lines
401 B
Java
12 lines
401 B
Java
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());
|
|
}
|
|
}
|