title: Display array of words in reverse order
body: <p>I have some of my code already done I just do not know how I would display the sentence in reverse order than what is entered.
  For example; if one enters "my name is joe"
  It should display in the output: Joe
                                   is
                                   name
                                   my</p>
  
  <pre><code> import java.util.Scanner;
  
  
   public class Sentence {
       public static void main(String [] args) {
           Scanner input = new Scanner(System.in);
           System.out.print("Enter a sentence: ");
           String sentence = input.nextLine();
  
           String[] words = sentence.split(" ");
  
           // Display the array of words in 
           // reverse order
       }
   }
  </code></pre>