title: fileScan.nextLine() comes back with a "cannot find symbol" error
body: <p><strong>EDIT:</strong> Foolish mistake. nextLine is the solution. Thanks again @mellamokb</p>
  
  <p>Trying to run an example from a Java book, but I'm getting a compiling error. The code is as follows:</p>
  
  <pre><code>public static void main (String [] args) throws IOException
  {
      String url;
      Scanner fileScan, urlScan;
  
      fileScan = new Scanner(new File("websites.inp"));
  
      // Read and process each line of the file
  
      while (fileScan.hasNext())
      {
          url = fileScan.nextline();
          System.out.println("URL: " + url);
  
          urlScan = new Scanner(url);
          urlScan.useDelimiter("/");
  
          // Print each part of the url
  
          while (urlScan.hasNext())
              System.out.println(" " + urlScan.next());
          System.out.println();
      }
  }
  </code></pre>
  
  <p>The error reads:</p>
  
  <pre><code>URLDissector.java:26: cannot find symbol  
  symbol  : method nextline()
  location: class java.util.Scanner
                      url = fileScan.nextline();
                                    ^
  </code></pre>
  
  <p>I thought the problem was the fact that I don't have a "websites.inp" file that it may need to reference, so I created one (though I simply saved the filename as "websites.inp" but it's saved as a txt, not sure how to adjust that)</p>
  
  <p>I've had a similar problem where I tried initializing DecimalFormat before with "new," but this time I'm apparently supposed to use that. So not sure where the problem lies.</p>
  
  <p>Thanks</p>