I am not understanding the logic of the question, what to code ? Could you pls help me understanding the question ?
package com.codegym.task.task07.task0718;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Checking the order
*/
public class Solution {
public static void main(String[] args) throws IOException {
//write your code here
ArrayList<String> list = new ArrayList<String>();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
for (int i = 0 ; i < 10; i ++)
{
list.add( bufferedReader.readLine());
}
for (int j = 0; j < list.size(); j++)
{
System.out.println(list.get(j));
}
list.add("R");
for (int k =0; k < list.size(); k++)
{
System.out.println(list.get(k));
}
}
}