java save the x and y values from 2d array values code example
Example 1: 2d arrays | java
int[][] arr = new int[row][column];
Example 2: How to create a 2d array in java
int[][] arr = new int[m][n];
int[][] arr = new int[row][column];
int[][] arr = new int[m][n];