Java double URL Reader?
<p>Can anyone help me with the Java URL reader? </p>

<p>I have created an URL reader in Java that reads the link and sends it to a specific file. 
How can I make the code read from two URL's and save it into a specific file ?</p>

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

<pre><code>import java.net.*;
import java.io.*;

public class URLReader {

public static void main(String[] args) throws Exception {

    URL oracle = new URL("http://www.oracle.com/");
    URLConnection yc = oracle.openConnection();
    BufferedReader in = new BufferedReader(new InputStreamReader(
    yc.getInputStream()));

    String inputLine;
    BufferedWriter psout = new BufferedWriter(new FileWriter("D:\\final.txt"));
    while ((inputLine = in.readLine()) != null) {
    psout.write(inputLine);
    System.out.println(inputLine);
    }
    in.close();
    psout.close();
   }
}
</code></pre>
