import [Link].
*;
public class arraynum {
public static void main(String args[]){
Scanner sc= new Scanner([Link]);
int row= [Link]();
int col= [Link]();
int numbers[][]= new int[row][col];
[Link]("enter data in your 2D array: ");
for(int i= 0; i<row; i++){
for(int j=0; j<col; j++){
numbers[i][j]= [Link]();
}
}
[Link]("here is your 2D array: ");
for(int i=0; i<row; i++){
for(int j=0; j<col; j++){
[Link](numbers[i][j] + " ");
}
[Link]("\n");
}
[Link]("enter the number you to find index of:");
int guessnum= [Link]();
int r = 0;
for(int i=0; i<row; i++){
for(int j=0; j<col; j++){
if(numbers[i][j] == guessnum){
[Link]("index for the " + guessnum + " is: " +
i+ " " + j );
r++;
}
}
}
if(r == 0){
[Link]("num is not found in an array");
}
}
}