I believe that we can use a for loop to reverse a string in Java. Just like below:
String[] name = new String[10];
for(int i = name.length; i >0; i--){
System.out.print(name[i-1]);
}
But another implementation is using LinkedList. So my understanding is to use LinkedList when the client is not sure how long the string array might increase dynamically. Is that correct?