More specific comparison than .contains
<p>I am looking for a less coarse version of <code>.contains</code>:</p>

<pre><code>if (arrayFileList.get(i).contains(file)){
</code></pre>

<p>This will match a file called 'top', but it will also match 'top' in 'stop_all.txt</p>
