Ex7_9 코드
package org.javaro.lecture;
public class Ex7_9 {
   public static void main(String[] args) {
      // TODO Auto-generated method stub
      Student stud1=new Student("20191016","조병수",3);
      stud1.exam[0].setExamScore("자바",88);
      stud1.exam[1].setExamScore("C",91);
      stud1.exam[2].setExamScore("C++",92);
      stud1.printGPA();
   }
}
class Student{
      String studNo, name; int totSubject;
      Exam[] exam;
      public Student(String studNo, String name, int totSubject) {
         this.studNo=studNo;   this.name=name;   this.totSubject=totSubject;
         exam = new Exam[totSubject];
         for(int i=0; i
 실행창 
