could someone please explain me how do arrays actually work on this example... i hate doing something with them just because i don't know how to make these loops and conditions to make things right, so i would be very thankful if someone could simplify me this lesson
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 {
//write your code here
String[] array = new String[10];
for (int i = 0; i < 8; i++) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
array[i] = reader.readLine();
for (int j = 10; j > 0; j--) {
System.out.println(array[j]);
}
}
}
}