Can't figure it out...
package com.codegym.task.task07.task0719;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Display numbers in reverse order
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<Integer> numbers = new ArrayList<Integer>();
for (int i = 0; i < 10; i++) {
list.add(Integer.parseInt(reader.readLine())); }
for (int i = 9; i >= 0; i--) {
System.out.println(numbers.get(i)); }
}
}