Le code est assez long pour le recopier. Voici des morceaux du code:
Dans la classe principale (ApprochedetectionInteret):
Declaration du tableau:
public static String[][] TagInterest=new String [300000][2]; //tableau
Remplissage:
1 2 3 4
| do{TagInterest[f][0]=newInterest1[i11][0];
TagInterest[f][1]=newInterest1[i11][1]+":: "+ tags3[j1][1]; System.out.println("f="+f+" / "+TagInterest[f][0]+"::"+TagInterest[f][1]);
f++;
}while (i11==newInterest1.length); |
Remarque: l'affichage est juste dans cette classe.
Dans la classe appelant la classe principale, j'ai voulue juste afficher les cases du tableau:
System.out.println("b="+b+" / "+ApprochedetectionInteret.TagInterest[b][0]+"::"+ApprochedetectionInteret.TagInterest[b][1]);
Et les cases sont "null" !
Partager