Answers for "How many elements can be stored in an array of dimension 2 by 2?"

1

Index through 2d array

int[][]x;//define
for(int i=0;i<x.length;i++){
  for(int j=0;j<x[i].length;j++){
    //dp something with x[i][j]
  }
}
Posted by: Guest on November-07-2020
1

Index through 2d array

int[][]x;//define
for(int []y:x){
  for(int a:y){
    //do something with a
  }
}
Posted by: Guest on November-07-2020

Code answers related to "How many elements can be stored in an array of dimension 2 by 2?"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language