fetchurl

It fetches the url specified in the command line and saves the content returned by that url.

To compile

javac URLC.java

To run

java URLC <url> <target-file-name>