About Question enthuware.ocajp.i.v8.2.897 :
Posted: Sun Dec 02, 2018 5:09 pm
I didn't understand what's it's asked by this question !
Code: Select all
Given the following code :
public class TestClass {
int[][] matrix = new int[2][3];
int a[] = {1, 2, 3};
int b[] = {4, 5, 6};
public int compute(int x, int y){
//1 : Insert Line of Code here
}
public void loadMatrix(){
for(int x=0; x<matrix.length; x++){
for(int y=0; y<matrix[x].length; y++){
//2: Insert Line of Code here
}
}
}
}
What can be inserted at //1 and //2?