here is the code I have written in java I think it is right. I am just not sure what to set result to? I want to return the element associated with the specific row column
public int getElement(int row,int col){
int result = 0;
if(((row>=1) && (row <=rowArray.length))&&((col>=1) && (col <=colArray.length))){
result = ??
}
return result;
}