解答例 - j2.lesson02_2.ExamRecord4Action

package j2.lesson02_2;

public class ExamRecord4Action {
    public static void main(String[] args) {
        ExamRecord4[] rec = new ExamRecord4[4];
        rec[0new ExamRecord4("Taro"100150901004090);
        rec[1new ExamRecord4("Hanako"100270308010070);
        rec[2new ExamRecord4("Kenji"10036050706080);
        rec[3new ExamRecord4("Aya"100440100905055);
        
        System.out.println("数学の平均点 = " + ExamRecord4.getAverageMa(rec));
        System.out.println("国語の平均点 = " + ExamRecord4.getAverageJp(rec));
        System.out.println("英語の平均点 = " + ExamRecord4.getAverageEn(rec));
    }
}