How do I display the contents of a Linked List in Java?
<p>I created a linked list class and added a bunch of values in it. But I don't know how to display those values. </p>

<p>I tried doing the following:</p>

<pre><code>System.out.println(list);
</code></pre>

<p>But it printed out some weird values like ADTList@(followed by some jibberish).</p>

<p>Thanks.</p>
