My code is giving the following error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10 at t151.main (t151.java:19)
What does this mean and how do I fix it?
Follow the code:
public class t151 {
static final int n = 10;
public static void main (String[] args){
int A[][] = new int [n][n];
int i,j;
for (i=0; i < n; i++){
for (j=0; j < n; j++){
}
System.out.print (A[i][j]);
}
}
}