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