so I have an array of public static Objects[] obj = (new Curriculum(),new referrences(),new Transcripts(),new Resume());
each of these 4 classes holds 3 arrays:
public static Objects [][] obj;
public static
String [] con;
public static String [];
//The problem comes when i pass the reference of these objects i.e.:
for(int i = 0;i < obj.length;i++){
initializeObject(obj[i]);
}
//This is where the problem happens
public void initializeObject(Object i){
i.con[i] = new String("bearss");
}
//This code is always highlighted as something is wrong. It sais that i.con[i] is not a valid field or something to that degree. I have a feeling that when I pass each reference in as an object something bad is happening. Though I cant figure out why, seeing as every object is an object!!!
any ideas?
sincerely,
Chris Dancy