public static void main(String[] args) throws Exception{ // TODO Auto-generated method stub Scanner sc = new Scanner (System.in); ObjectOutputStream grade = null;
grade = new ObjectOutputStream(new FileOutputStream("TestGrade.txt"));
grade.writeObject("성적"); grade.writeObject("이 름 - 영 어 - 수 학 - 과 학 - 합 계 - 평 균");
for(int i=0;i<3;i++){ System.out.println("이름 :"); String name =sc.next(); System.out.println("영어 :"); int eng =sc.nextInt(); System.out.println("수학 :"); int math =sc.nextInt(); System.out.println("과학 :"); int sci =sc.nextInt();