Sto cercando di scriverlo su disco, ma non riesco a capire come fare puoi indicarmi la via te ne sarei grato

ecco l'esempio che vorrei far funzionare

public class scarica {
public static void main(String[] args) {
try {
String myfile = ("A020202.zip");
URL website = new URL ("http://gis.sitgeo.it/Mappe/CREMIA/"+myfile);
ReadableByteChannel rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(myfile);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);

JFileChooser fc = new JFileChooser();
FileFilter SHP = new FileNameExtensionFilter ("File ZIP", "zip");
fc.addChoosableFileFilter(SHP);
File f = fc.getSelectedFile();
FileFilter selectedFilter = fc.getFileFilter();
if (selectedFilter == SHP){
f = new File(f.getPath() + ".zip");
}
fc.setSelectedFile(new File(myfile));



if (fc.showSaveDialog(fc)==JFileChooser.APPROVE_OPTIO N){
File file2 = fc.getCurrentDirectory();
System.out.println("il file è " + file2.getAbsolutePath());

}
}
catch (Exception e){
System.err.println(e);
}
}

}

grazie ancora