Design a program named Array2DPrint.java and implement the method specified below: public static void print(int[][] arr)This method prints the elements in a N x N two dimensional integer array as shown below:————-| X | O | |————-| O | | X |————-| | X | O |————-If the value of an element is 1, place a symbol X in its corresponding location, and O for a value of 0. For all other values, place an empty space in its location. For example, in the above sample run, the value of the element in [0][0] is 1, so X is displayed on [0][0] location. Then test your program as follows (int the main method):1. Define a 3 x 3 integer array2. Randomly assign numbers between 0 and 3, inclusive, to the elements of the array3. Call print method