compiler warning: local variable is redundant
<p>I am receiving a compiler warning that says <code>local variable 'newElement' is redundant</code>. How can I write the following code more efficiently to rid my code of this warning?</p>

<pre><code>Element newElement = new Element(left,elements.next);
elements.next = newElement;
</code></pre>