I Got The Desired Output But The Third Requirement is missing. I Have No Idea of What They Want Me To Do? Can Anyone Explain Me?
package com.codegym.task.task07.task0710;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
To the top of the list
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> list = new ArrayList<String>();
for(int i=0; i<10; i++){
String s = reader.readLine();
list.add(i, s);
}
for(int i=9; i>=0; i--){
System.out.println(list.get(i));
}
}
}