пишет что в 22 строке не может найти описание в классе - о чем это в моем случае? помогите пожалуйста
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[]array;
int N;
N=console.nextInt();
array=new int[N];
if(N>0)
for (int i=0;i<N;i++) {
array[i] = console.nextInt();
}
if(N%2==1)
{
System.out.println(array[i]);
}
else
for (int i=N;i>0;i--)
{
System.out.println(array[i]);
}}
}