I've checked other peoples problems, and looked over mine quite a few times. Everything should work, but its not fulfilling last two requirements, and its not telling me whats wrong.
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 work[] = new String[10];
for (int i = 0; i < 8; i++){
work[i] = reader.readLine();
}
work[8] = "bruh";
work[9] = "bruhcity";
for (int i = 10; i > -1; i--){
System.out.println(work[i]);
}
}
}