class cast exception when trying to match with startwith
<p>I am trying to match if a file prefix match with my object but i got a classcastexception </p>

<pre><code> for (int i=0;i&lt;files.length;i++)
        {
            File f= files[i];
            String s=listeClients.get(i).getShortname();
            if(f.getName().startsWith(s))
            {
            System.out.println("file: " + f.getName());
            }
        }
</code></pre>

<p>I pass a string into the startwith method, so i don't understand why i got this error:</p>

<pre><code>Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to com.dev.pojo.Clients
</code></pre>

<p>Thank you very much</p>
