• + 0 comments

    int[] a = new int[n]; for(int i = 0; i < n; i++){ a[i] = scan.nextInt(); }

                this works!!