title: Select a particular type of file in java
body: <p>I am selecting files in java using the following code:</p>
  
  <pre><code>  File folder = new File("path to folder");
    File[] listOfFiles = folder.listFiles();
  </code></pre>
  
  <p>Now what to do if I want to select only image files?</p>