title: Prompting user to enter five people's weights. Then store them in an Array and also output them
body: <ol>
  <li>Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's numbers on one line, each number followed by one space.</li>
  </ol>
  
  <p>I have tried the following code:</p>
  
  <pre><code>import java.util.Scanner;
  
   public class PeopleWeights {
   public static void main(String[] args) {
   Scanner reader = new Scanner(System.in); 
  
  
   System.out.println("Enter weight 1: " + reader.nextDouble());
   double weightOne = reader.nextDouble();
  
   System.out.println("Enter weight 2: " + reader.nextDouble());
   double weightTwo = reader.nextDouble();
  
   System.out.println("Enter weight 3: " + reader.nextDouble());
   double weightThree = reader.nextDouble();
  
   System.out.println("Enter weight 4: " + reader.nextDouble());
   double weightFour = reader.nextDouble();
  
   System.out.println("Enter weight 5: " + reader.nextDouble());
   double weightFive = reader.nextDouble(); /* Type your code here. */
  
  return;
      }
  }
  </code></pre>
  
  <p>I am sorry if my point of confusion is all over the place. But in short I'm having trouble with:</p>
  
  <ol>
  <li>Get user input to register in doubles.</li>
  <li>Get those inputs to be stored in an array.</li>
  <li>displaying those values in a manner like shown below.</li>
  </ol>
  
  
  
  <pre><code>  Enter weight 1:
    236.0
    Enter weight 2:
    89.5
    Enter weight 3:
    142.0
    Enter weight 4:
    166.3
    Enter weight 5:
    93.0
    You entered: 236.0 89.5 142.0 166.3 93.0
  </code></pre>