style:fmt

This commit is contained in:
dichgrem
2025-11-15 13:30:17 +08:00
parent c20e8949a5
commit 41e6b71bd7
33 changed files with 549 additions and 543 deletions

View File

@@ -1,12 +1,11 @@
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());
}
}
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());
}
}