johnjjj
Messages postés120Date d'inscriptiondimanche 4 avril 2010StatutMembreDernière intervention24 septembre 2012
-
5 mai 2010 à 14:16
johnjjj
Messages postés120Date d'inscriptiondimanche 4 avril 2010StatutMembreDernière intervention24 septembre 2012
-
5 mai 2010 à 14:51
Bonjour
Je veux votre aide
Ce code ne peux pas compiler mon objectif de supprimer un élément de table tab lorsque élément supprimer return true sinon return false
public class C {
String nom;
P []tab;
P t3[];
public C(P []tab,int a ) {
t3=new P [a];
tab=new P [a];
}
public boolean supp (int aa ){
try {
for (int i=0;i<tab.length;i++)
{
if (i==aa)
continue;
else{
t3[i]=tab[i];
}
System.out.println(t3[i]);
return true;
}
}
catch(Exception p)
{
return false;
}