Java LinkedList obtaining first element
<p>I have an Java <code>LinkedList</code> which stores two values (code below).</p>

<p>I was wondering how i can obtain the first value only?</p>

<p>I have:</p>

<pre><code>LinkedList list = new LinkedList();
list.add(number+" "+string);
</code></pre>

<p>I want to be able to just print out number from the list. Is it possible?</p>
