Trebaju ti klase "Profesor" i "Student", i konstruktori tih klasa. Npr. ovako:
Code:
//klasa Profesor
public class Profesor{
String a, b, c, d;
Profesor(String a, String b, String c, String d){
this.a = a;
this.b = b;
this.c = c;
this.d = d;
}
}
//klasa Student
public class Student{
String a, b, c, d;
Student(String a, String b, String c, String d){
this.a = a;
this.b = b;
this.c = c;
this.d = d;
}
}