package com.codegym.task.task07.task0719; import; import; import; import java.util.ArrayList; /* Display numbers in reverse order Enter 10 numbers from the keyboard and put them in a list. Display them in reverse order. Each element on a new line. Use only a for loop. */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(; //write your code here ArrayList<Integer> s = new ArrayList<Integer>(); for(int i = 0; i<10; i++) { s.add(Integer.parseInt(reader.readLine())); } for(int k = s.size(); k>=0; k--) { System.out.println(s.get(k)); } } }