Posts by Rui Duarte • 1 point
1 post
-
-1
votes2
answers315
viewsQ: Error in code - Arrayindexoutofboundsexception
int[][] A = {{11, 7},{-20,-22}}; int[][] B = {{A[0].length},{A.length}}; for(int i = 0; i < A.length;i ++){ for(int j = 0; j < A[0].length;j ++){ System.out.print(A[i][j] + "\t"); }…
javaasked Rui Duarte 1