@@ -0,0 +1,499 @@
+import java.util.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner scan = new Scanner(System.in);%0A        int n = scan.nextInt();%0A%0A        // Write your solution here%0A        int%5B%5D a = new int%5Bn%5D;%0A        for (int i = 0; i %3C n; i++) %7B%0A            a%5Bi%5D = scan.nextInt();%0A        %7D%0A%0A        scan.close();%0A%0A        // Prints each sequential element in array a%0A        for (int i = 0; i %3C a.length; i++) %7B%0A            System.out.println(a%5Bi%5D);%0A        %7D%0A    %7D%0A%7D%0A

Solve java 1d array intro