1. Create class CodingPractice. In the main method, ask the user to input an integer n. In the main method, create a 2D array with size (nn). Initialize the 2D array with random integer 0 to 100. 2.Write a method printArray 0 in CodingPractice that accepts a 2D array and prints each element to console follow the example output format. 3.Write a method printSwitch0 in CodingPractice that accepts a 2D array and switch the element in the first row and first column. Then print the new array in the example format..
1. Create class CodingPractice. In the main method, ask the user to input an integer n. In the main method, create a 2D array with size (nn). Initialize the 2D array with random integer 0 to 100. 2.Write a method printArray 0 in CodingPractice that accepts a 2D array and prints each element to console follow the example output format. 3.Write a method printSwitch0 in CodingPractice that accepts a 2D array and switch the element in the first row and first column. Then print the new array in the example format..