The following java method is a simple way to download a file stored on the internet.

Let’s say you want to download the file at the address and then you want to store it into C:, with the following method you’ll have to do the following simple call:

downloadAndStoreFile(“”, “C:\\”);


and here you are the method: