How can I get element from List<File>?
<p>In Java, I have a following declaration:</p>

<pre><code>public List&lt;File&gt; getAllFiles(){
        return Collections.unmodifiableList(createdFiles);
    }
</code></pre>

<p>I want to access the object (file) that is first on that list. How can I best do it?</p>
