This code spits out the correct answer, but the last condition won't verify. Please help!
package com.codegym.task.task07.task0704;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Flip the array
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
int list[] = new int [10];
for (int i=0; i<list.length; i++){
String s = br.readLine();
list [i] = Integer.parseInt(s);
}
for (int i=9; i<list.length; i--){
System.out.println(list[i]);
}
}//write your code here
}