title: Accepting Multiple Inputs into an Array
body: <p>So, I want to ask the user to input three values (all double) with only one prompt and have them stored in an array (I just started getting familiar with creating objects and arrays). This is what I've got so far:</p>
  
  <pre><code>import java.util.Scanner;
  
    final int ARRAY_LIMIT=3;
  
    Scanner input=new Scanner(System.in);
    System.out.println("Enter the points and speed: ");
    double entryVal=input.nextDouble();
    double[] array=new double[ARRAY_LIMIT];      
  
    for(int entriesCounter=0; entriesCounter&lt;array.length; entriesCounter++)
    {
       array[entriesCounter]=entryVal;
       if(array[2]==0)
          break;
    }
  </code></pre>
  
  <p>So when I try to run it and I input something like 1.0, 1.0, 10.0, but I get all sorts of code spewed out. The point is to input all 3 values at the same time, eventually use these values in separate equations and terminate if the third number is 0. But I want to first be able to get these values to be stored correctly. I've tried to look at other previously answered questions but couldn't find something that helped me. I'm very new to Java so I'm still bumbling about. Any detailed help would be greatly appreciated. </p>