title: How to change file extension at runtime in Java
body: <p>I am trying to implement program to zip and unzip a file. All I want to do is to zip a <strong>file (fileName.fileExtension)</strong> with name as <strong>fileName.zip</strong> and on unzipping change it again to <strong>fileName.fileExtension</strong>.</p>