Answer:
Following are the complete code to the given question:
public class Main//main class
{
public static void main(String[] args) //main method
{
int [][] arr = {{11, 13, 14 ,15},{12, 18, 17, 26},{13, 21, 26, 29},{14, 17, 22, 28}};//defining a 2D array
int num=14;//defining an integer variable that holds a value 14
for (int j = 0; j < arr.length; j++)//defining for loop to hold row value
{
for (int k = 0; k < arr[0].length; k++)//defining for loop to hold column value
{
if (arr[j][k] == num)//defining if block that checks num value
{
System.out.print(j + k + arr[j][k] + " ");//print value
}
}
}
}
}
Output:
16 17
Explanation: