Hi, it works but does not pass the test. Could You please tell what is wrong with this code?
package pl.codegym.task.task07.task0704;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
/*
Odwróć tablicę
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int[] arr = new int[10];
for(int i = 0;i < arr.length; i++)
{
arr[i] = scan.nextInt();
}
for (int i = 9; i <= arr.length; i--)
System.out.println(arr[i]);
}
}