How to print every third element od Array? : I have a problem. I need to take 2 inputs from user (size of array) and then second input (elements of that same array).

After that i need to print every third element of array.
I done it! But with this i can print elements from last element in array and i want to print from first.

Example size of array is 9.
Elements: 1,2,3,4,5,6,7,8,9.
I need to print 3,6,9 but i am printing 9,6,3 :D

Help,
Here is my code so far.

class Demo {

    public static void main(String[] args) {

        int x;
        int[] y;

        Scanner tastatura = new Scanner(System.in);

        System.out.println("Enter size of array:");

        x = tastatura.nextInt();
        y = new int[x];
        System.out.println("Enter the elements of array:");

        for (int i = 0; i < x; i++) {
            y[i] = tastatura.nextInt();
        }

        System.out.println("\n Every third element of array is : ");

        for (int i = y.length - 1; i >= 0; i = i - 3) {
            System.out.println(y[i]);
        }
        tastatura.close();
    }