Filename filter based on multiple conditions
<p>I am using the following code to return files in the directory where the extension is ".mp4".</p>

<p>I want to adapt the code so that it returns files which have .mp4 extension but do not contain the string "temp" in the rest of the filename</p>

<pre><code>final String[] vids = dir.list(new FilenameFilter() {
    public boolean accept(File dir, String name) {
        return name.endsWith(".mp4");
    }
});
</code></pre>
