title: Java create a new file, or, override the existing file
body: <p>What I want to achieve is to create a file regardless of whether the file exists or not.</p>
  
  <p>I tried using <code>File.createNewFile()</code> but that will only create the file if it does not already exists. Should I use <code>File.delete()</code> and then <code>File.createNewFile()</code>?</p>
  
  <p>Or is there a clearer way of doing it?</p>