✏️ 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}
};

👁 87 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

Answer not available right now.