Write the for structure in JAVA coding to read and display all elements in the third row of array x. Solution import java.util.Scanner; public class Program1 { public static void main(String[] args) { Scanner sc= new Scanner(System.in); System.out.print(\"Enter number of elements: \"); int n= sc.nextInt(); //creating an array of element n int []x = new int[n]; //now reading array elements System.out.println(\"Enter \"+n+\" elements: \"); for(int i=0; i<n; i++) x[i] = sc.nextInt(); // now displaying using enhanced for loop System.out.println(); System.out.println(\"Array elemets are: \"); for(int e: x) System.out.print(e+\" \"); System.out.println(); } } /* Sample Output: Enter number of elements: 6 Enter 6 elements: 4 8 9 23 12 15 Array elemets are: 4 8 9 23 12 15 */ .