cs_amel2006
Messages postés83Date d'inscriptionsamedi 21 janvier 2006StatutMembreDernière intervention 9 décembre 2006
-
17 avril 2006 à 11:09
kaloway
Messages postés358Date d'inscriptionjeudi 24 octobre 2002StatutMembreDernière intervention13 avril 2020
-
18 avril 2006 à 17:50
j'ai construit une liste qui contient 3 string et un tableau
voici mon code
et j'ai pas sue acceder au élément de ce tableau là
import java.io.*;
import java.util.*;
public class azerty
{
public static String res[][]=new String[40][3];
public static String res0[][]=new String[3][3];
public static String res1[][]=new String[3][3];
public static String [][] Tab_source={
{"Go","gt",""},
{"ya","fr",""}};
public static void main (String [] argv) throws IOException
{ res[0][0]="aa";
List liste = new ArrayList();
liste.add(Tab_source[0][0]);
liste.add(Tab_source[0][1]);
liste.add(Tab_source[0][2]);
liste.add(res);
String d=(liste.get(3)).toString();
System.out.println(d);
houda82
Messages postés55Date d'inscriptionlundi 26 décembre 2005StatutMembreDernière intervention23 avril 2006 17 avril 2006 à 11:20
je ne comprend pas exactement ce que tu veux mais pour acceder aux elements d'un tableau tu doit utiisé un index qui effectue le parcour de ton tableau cherche dans la doc tu trouvera surement ce tu cherche