title: How do I display the contents of a Linked List in Java?
body: <p>In Java, I created a linked list class and added a bunch of values. 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 <code>ADTList@</code> followed by some jibberish.</p>