If i run the code the Input is displayed in reverse order but it still does not fullfill the requirement?
package de.codegym.task.task07.task0702;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
String-Array in umgekehrter Reihenfolge
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader a = new BufferedReader(new InputStreamReader(System.in));
String[] liste = new String[10];
for(int i = 0; i < liste.length; i++){
if (i<8)
liste[i]=a.readLine();
}
for(int i=9; i < liste.length;i--){
System.out.println(liste[i]);
}
}
}