title: Taking a list of integers and displaying them in reverse using arrays
body: <p>If my input is 1 2 3 the output is also coming out as 1 2 3, how do I make these numbers to display 3 2 1?</p>
  
  <pre><code> public static void main(String[] args) {
      // TODO code application logic here
      Scanner s = new Scanner(System.in);
  
      String text = s.nextLine();
  
  
      String[] entries = text.split(" ");
      int[] nums = new int[entries.length];
  
       for(int i = 0; i &lt; entries.length; i++){
          nums[i] = Integer.parseInt(entries[i]);
      }
       for(int i = 0; i &lt; entries.length; i++){
          System.out.println(nums[i]);
      }
  }
  </code></pre>
  
  <p>}</p>