title: Remove the extension of a file
body: <p>Given a filename like:</p>
  
  <pre><code> package.zip    image.jpeg   video.avi etc
  </code></pre>
  
  <p>I'd like to remove the extension if exists. How can I make this in Java? THanks!</p>