What is the meaning of adding line at the beginning of the code.
the third condition.
thanks for the help...
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> strings = new ArrayList<String>();
int i = 0;
while(i <= 9){
strings.add(reader.readLine());
// System.out.println(strings.get(i));
i++;
}
for (int j = 9; j >= strings.size() - 1 -9 ; j--){
System.out.println(strings.get(j));
}
}
}