title: What do I return?
body: <p>I need to return numbers from a file, and currently I am returning the number of inputs vs the actual numbers that need to be printed out.</p>
  
  <pre><code>public static double readFile() throws IOException
  {
      Scanner input = new Scanner (new File("floats.txt"));
      int numOfInputs = input.nextInt();
  
      double[] array = new double[numOfInputs];
  
      for (int i = 0; i &lt; array.length; i++){
          array[i]=input.nextDouble(); 
      }
      return numOfInputs;
  }
  </code></pre>
  
  <p>My main goes as follows;</p>
  
  <pre><code>double file = readFile();
  System.out.println(file);
  </code></pre>