Explanatory Question
Write a Java program to search for a specific element in a 2D array and print its position (row and column index). If the element is not found, print a message indicating that the element was not found.
Given the following 2D array:
int[][] arr = { {5, 7, 9}, {4, 6, 8}, {1, 2, 3} };
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.