===== Cette page référence toutes les fonctions en relation avec les tableaux. Pour plus d'explications voir les pages de cours. ====== __Créer un tableau__ int [] tab = new int[10]; __Créer et remplir un tableau__ int tab [] = {1, 5, 6}; __Remplir une case__ tab[1] = 2; __Remplir un tableau à l'aide d'une boucle__ int tab [] = new int [5]; for(int i = 0; i < tab.length, i++) tab[i] = i+2; __Afficher un tableau__ int tab [] = {1,5,12}; for(int i = 0; i < 3; i++) println(tab[i]); __Créer un tableau à 2 dimensions__ int tab[][] = new int [5][7] __Remplir un tableau à 2 dimensions__ int tab[][] = {{7, 21, 9}, {47,9 ,12, 16}}; __Afficher un tableau à 2 dimensions__ int tab2[][] = {{7, 21, 9, 97, 45}, {47, 12}}; println(tab2[1][1]); println(tab2[0][3]); Crée par QUINQUENEL