title: Error: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown[7]
body: <p>I keep getting the <code>FileNotFoundException</code>, even though I´m throwing it.</p>
  <p>Here´s the code:</p>
  <pre><code>import java.util.*;
  import java.io.*;
      
  public class kt_6_2 {
      public static void main(String[] args) {
          File file = new File(&quot;magicSquare.txt&quot;);
          fileRead(file);
      }
      static void fileRead (File dummyFile) throws FileNotFoundException {
          Scanner scanner = new Scanner(dummyFile);
          String[] squareLines = new String[3];
          for (int a = 0; a &lt; 3; a++) {
              squareLines[a] = scanner.nextLine();
              scanner.nextLine();
          }
          System.out.println(squareLines[2]);
      }
  }
  </code></pre>
  <p>edit: the error message is:</p>
  <pre><code>kt_6_2.java:7: error: unreported exception FileNotFoundException; must be caught
   or declared to be thrown
                  fileRead(file);
                          ^
  1 error
  </code></pre>