title: opening connection and reading stream
body: <p>I get a runtime error when I try to do "<a href="http://www.oracle.com" rel="nofollow">http://www.oracle.com</a>". It says, <code>error java.net.UnknnownHostException:www.oracle.com</code> then it lists a whole bunch of errors having to do with Sockets, HttpURLConnection  etc. and it all ends up pointing at this connect method, specifically <code>InputStream steam</code> line.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>   public void connect (String website) throws IOException {
  
       URL u = new URL(website);
       URLConnection conn = u.openConnection();
       InputStream stream = conn.getInputStream();
       Scanner input = new Scanner(stream);
       input.useDelimiter("&lt;a");
       readWebsite(input);
  
    }
  </code></pre>