list[0] =new Student(new StudentName("Ma", "J","jame"),19,new Course("BSCS", "BSIT", "BSACT"),new StudentChairLocation(1,1));
list[1]=new Student(new StudentName("Mike", "j","Cek"),17,new Course("BSCS", "BSIT", "BSACT"),new StudentChairLocation(2,1));
JOptionPane.showMessageDialog(null,"Course:"+list[i].course.BSACT);
Class:
public class Course {
String BSCS;
String BSIT;
String BSACT;
public Course(String c,String i,String a ){
BSCS=c;
BSIT=i;
BSACT=a;
}


Sign In
Create Account


Back to top










