Can someone please tell me why I am failing the first task? Thanks!
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 {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
final int SIZE = 10;
int[] nums = new int[SIZE];
for (int i = 0; i < SIZE; i++) {
nums[i] = Integer.parseInt(reader.readLine());
}
for (int i = SIZE - 1; i >= 0; i--) {
System.out.println(nums[i]);
}
}
}