Java.lang.ArrayIndexOutOfBoundsException:
Résolu
domxaline
-
domxaline -
domxaline -
Bonjour,
mon prg me donne un résultat comme qui suit:
tab 0=[I@7122e0b3tab0=[I@7122e0b3
tab 0=[I@7122e0b3tab1=[I@28ce41cc
tab 0=[I@7122e0b3tab2=[I@7d41cd01
tab 0=[I@7122e0b3tab3=[I@6afa3ce5
tab 0=[I@7122e0b3tab4=[I@52b41541
quelqu'un peut m'aider svp
mon prg me donne un résultat comme qui suit:
tab 0=[I@7122e0b3tab0=[I@7122e0b3
tab 0=[I@7122e0b3tab1=[I@28ce41cc
tab 0=[I@7122e0b3tab2=[I@7d41cd01
tab 0=[I@7122e0b3tab3=[I@6afa3ce5
tab 0=[I@7122e0b3tab4=[I@52b41541
quelqu'un peut m'aider svp
public class Divers3
{
public static void main(String[] args)
{
int i,j=0;
int tab[][]=new int[5][12];
for(i=0;i<5;i++)
{
for(j=0;j<12;j++)
{
tab[i][j]=0;
System.out.println("tab "+i+"="+tab[i]+"tab"+j+"="+tab[j]);
}
}
}
}