title: Java Error when using Scanner, "no suitable constructor found for Scanner"
body: <p>I am using Scanner and BufferedReader objects to read text input from a url, and am getting this compile time error: no suitable constructor found for Scanner. </p>
  
  <p>any suggestions would be appreciated, here is the code:</p>
  
  <pre><code>import java.util.Scanner;
  import java.net.*;
  import java.io.*;
  import java.util.Arrays;
  import java.lang.*;
  public class Processor 
  {
  
  public void start(){
    readInput();
    sort();
    writeOutput();
  }
  public void readInput()
  {
  Scanner scan = new Scanner();
  URL file = new URL("http://file.txt");
  BufferedReader reader=new BufferedReader(new InputStreamReader(file.openStream()));
  Customer[] customerList = new Customer[40000];
  
  scan.nextLine();
  </code></pre>