amasou
Messages postés36Date d'inscriptionmardi 12 mai 2009StatutMembreDernière intervention 1 septembre 2010
-
5 mai 2010 à 14:12
amasou
Messages postés36Date d'inscriptionmardi 12 mai 2009StatutMembreDernière intervention 1 septembre 2010
-
5 mai 2010 à 14:23
Bonjour
es que vous pouvez m'aider je suis bloque
comment passe des paramètre d'un objet tableau de type classe
le probleme ici B c=new B([new C(0, 0, null, null)], 0);//problem
Class C
int age ,id;
String nom,prenom;
public C(int id,int age,String nom,String prenom){
this.nom=nom;
this.prenom=prenom;
this.age=age;
this.id=id;
}
Class B{
String nom;
C []tab;
C t3[];
public Carnet(C []tab,int a )throws
{
t3=new C [a];
tab=new C [a];
}
public static void main(String[] args) {
C p=new C(0, 0, null, null);
B c=new B(, 0);//problem
c.s1);
System.out.println(c.s(1));