title: Is there a new Java 8 way of retrieving the file extension?
body: <p>What I did up until now is following:</p>
  
  <pre><code>String fileName = "file.date.txt";
  String ext = fileName.substring(fileName.lastIndexOf('.') + 1);
  
  System.out.printf("'%s'%n", ext); // prints: 'txt'
  </code></pre>
  
  <p>Is there a more convenient way in Java 8?</p>