public class Student {
private String sno;
private String sna;
private int k,e,m,tot;
private double avg ;
public Student(String no,String name,int kor,int eng,int mat){
sno=no;
sna=name;
k=kor;
e=eng;
m=mat;
}
public void output(){
System.out.println(sno+" "+sna+" "+k+" "+e+" "+m);
}
public void sum(){
tot=k+e+m;
}
public void avg(){
avg=tot/3.0;
}
public static void main(String[] args) {
Student[]S = new Student[3];
S[0]= new Student ("001","공유",100,100,100);
S[1]= new Student ("002","유아인",99,99,99);
S[2]= new Student ("001","김수현",100,100,100);
for (int i=0;i<3;i++){
S[i].output();
}
}
}









