Что делать с массивом как туда вбить данные? почему он не дает а сразу выводит нули на экран
package com.javarush.task.pro.task05.task0505;
import java.util.Scanner;
/*
Reverse
*/
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
if (N > 0){
N = sc.nextInt();
int [] array = new int[N];
for (int i = 0; i< array.length; i++){
if (array[i] % 2 == 0){
System.out.println(array[i]);
} else {
for (int j = N; j >= 0; j--){
System.out.println(array[j]);
}
}
}
}
}
}