I do not understand what aspect of the conditions my code does not do?
package com.codegym.task.task07.task0702;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
String array in reverse order
*/
public class Solution {
public static void main(String[] args){
try {//throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] list = new String[10]; //{" ", " ", " ", " ", " ", " ", " ", " ", " ", " "};
for (int i = 0; i < list.length; i++)
{ list[i] = reader.readLine(); }
for (int i = 9; i > -1; i--){
if (list[i]!=null) { System.out.println(list[i]);}
if (list[i]==null) { System.out.println();}
}
}catch(Exception ArrayIndexOutOfBoundsException){System.out.println("ArrayIndexOutOfBoundsException");}
}}