mirror of
https://github.com/Dichgrem/Java.git
synced 2025-12-16 20:42:00 -05:00
style:fmt
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user