title: Arrays are being filled with null instead of names and 0 instead of numbers
body: <p>I need to fill the two seperate arrays with the names from a text file and corresponding account balances.
  The file looks like this</p>
  
  <pre><code>10
  Helene 1000
  Jordan 755
  Eve 2500
  Ken 80
  Andrew 999
  David 1743
  Amy 12
  Sean 98
  Patrick 7
  Joy 14
  </code></pre>
  
  <p>where 10 is the number of accounts</p>
  
  <pre><code>import java.util.*;
  import java.io.*;
  import java.util.Arrays;
  
  public class bankaccountmain {
  
      public static void main(String[] args) throws FileNotFoundException {
          Scanner inFile = null;
          try {
              inFile = new Scanner(new File("account.txt"));
              ;
          } catch (FileNotFoundException e) {
              System.out.println("File not found!");
  
              System.exit(0);
          }
          int count = 0;
          int accounts = inFile.nextInt();
          String[] names = new String[accounts];
          int[] balance = new int[accounts];
          while (inFile.hasNextInt()) {
              inFile.next();
              names[count] = inFile.next();
              inFile.nextInt();
              balance[count] = inFile.nextInt();
              count++;
          }
          System.out.println(Arrays.toString(names));
          System.out.println(Arrays.toString(balance));
      }
  }
  </code></pre>