I don't understand why I'm getting a "cannot find symbol" error, any advice would be appreciated
<p>I'm trying to make a class that gets the source code from a URL. I dont understand why I get a "cannot find symbol error" on this line:</p>

<p><code>catch (MalformaedURLException e)</code></p>

<p>If someone could explain whats wrong that would be wonderful...Thanks</p>

<p>Here is my whole code:</p>

<pre><code>import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.net.MalformedURLException;

public class SourceCode
{
private String source;
public SourceCode(String url)
{
    try
    {
        URL page = new URL(url);
        this.source = getSource(page);
    }
    catch (MalformedURLException e)
    {
        e.printStackTrace();
    }
}

public String getSource(URL url) throws Exception
{

        URLConnection spoof = url.openConnection();
        BufferedReader in = new BufferedReader(new InputStreamReader(spoof.getInputStream()));
        String strLine = "";

        spoof.setRequestProperty( "User-Agent", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; H010818)" );


        while ((strLine = in.readLine()) != null)
        {
            strLine = strLine + "\n";
        }
        return strLine;
}
</code></pre>

<p>}</p>

<p>Thanks!</p>
