Java NIO: Tighten Your Code With the deleteIfExists() method Don't write any more lines of code than you need to.