I am having troubles in JAVA. I am trying to get the string to print out backwards for each word.
Example: Hello World would be "olleh dlrow"
Below is my class. thanks for the help.
public class ReadReverse {
    String message = "Hello nice to meet you in CS102";
    String[] myStrings = message.split(" ");  //Makes an array of the words split up by spaces
    String result = "";
    {
        // gets the length of the array and splits it up by each word
        for (int i = 0; i < myStrings[i].length(); i++) {
            message.push(myStrings[i].at(i));
            // sets th length to the length of the word
            int length = message.length();
        //          pops the letter out into the new stack 
            for (i = 0; i < length; i++) {
                result += myStrings;
            }
            // checks to see if it is at the end of the string. 
            if (i != message.length() - 1) {
                result += " ";
            }
        }
    }
}
 
     
     
    