giovedì 15 ottobre 2009

lezione 15-10-09 parte 2

public class ProvaStudente{
public static void main(String[] args){
Studente studenti=new Studente[19];
Studente s1=new Studente("Di Bari","10-07-1992","IVAL");
Studente s2=new Studente("Scorteccia","25-01-1992","IVAL");
Studente s3=new Studente("Drago","10-05-1992","IVAL");
Studente s4=new Studente("Millucci","10-08-1992","IVAL");
studenti[0]=s1;
studenti[1]=s2;
studenti[2]=s3;
studenti[3]=s4;
for(int i=0; i
studenti[i].studia();
}
}
}

Nessun commento: