all working. 10 strings. and reverse array. maybe i did not understand condition?
package com.codegym.task.task07.task0702;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
String array in reverse order
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader ( new InputStreamReader (System.in));
String[] array = new String[10];
for ( int i = 0; i < 8; i++)
{
array[i] = reader.readLine();
}
for (int i = 0; i < 10; i++)
{
System.out.println(" 10 strings ");
// this not work too System.out.println("array " + i + " = " + array[i]);
}
for (int i = 9 ; i > 0 ; i--)
{
System.out.println("array " + i + " = " + array[i]);
}
// System.out.println(array[8]);
//write your code here
}
}