Hi all,
I have a problem with finishing the task. The program is compiling. The output from program is correct but the two last points after all are red.
package pl.codegym.task.task07.task0702;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Tablica z ciągami w odwrotnej kolejności
*/
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String tablica[] = new String[10];
for (int i = 0; i < 8 ; i++) {
tablica[i] = reader.readLine();
}
for (int i = 0; i < tablica.length; i++){
System.out.println(tablica[i]);
}
for (int i = tablica.length -1; i >= 0; i--){
System.out.println(tablica[i]);
}
}
}