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