title: Scanner cannot be resolved
body: <pre><code>    File inputTXT = new File (fileName);
  
      try{
      Scanner in = new Scanner(inputTXT);
      }catch(FileNotFoundException e){
          System.out.println("");
      }
          while(in.hasNext()){
              String line = in.nextLine();
  </code></pre>
  
  <p>It says in can't be resolved.How am I going to fix this problem?</p>
  
  <p>I've tried ignored try catch block, but this file scanner has to be in the try catch block</p>