title: How to get a file with exact extension from ArrayList of files
body: <pre><code>File f = new File("abstract_pathnames");
  ArrayList&lt;File&gt; files = new ArrayList&lt;File&gt; (Arrays.asList(f.listFiles()));
  </code></pre>
  
  <p>How can I get a file with specific extension from this list?</p>