Como passar:
JFileChooser arquivo = new JFileChooser();
String caminho = arquivo.getSelectedFile().getAbsolutePath();
como parametro para esse método
public static void compress(final File input, final File output) throws IOException {
.
.
.
}
se o retorno do JFileChooser é uma String e o metodo pede um File? no metodo eu não poderia por uma string, para passar o diretorio do arquivo?
Obrigado