0
My code is giving the following error:
Exception in thread "main" java.lang.Arrayindexoutofboundsexception: 10 at t151.main(t151.java:19)
What it means and how to fix?
Follows 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]);
}
}
}