title: Reading ints from a txt file and storing to an array
body: <p>I am trying to read integers from a text file and store them into an array. The text file reads: </p>
  
  <pre><code>4
  -9
  -5
  4
  8
  25
  10
  0
  -1
  4
  3
  -2
  -1
  10
  8
  5
  8
  </code></pre>
  
  <p>Yet when I run my code I get <code>[I@41616dd6</code> in the console window...</p>
  
  <pre><code>public static void main(String[] args) throws IOException
      {
          FileReader file = new FileReader("Integers.txt");
          int[] integers = new int [100];
          int i=0;
          try {
              Scanner input = new Scanner(file);
              while(input.hasNext())
              {
                  integers[i] = input.nextInt();
                  i++;
              }
              input.close();
          }
          catch(Exception e)
          {
              e.printStackTrace();
          }
          System.out.println(integers);
      }
  </code></pre>