title: How to print out all the elements of a List in Java?
body: <p>I am trying to print out all the elements of a <code>List</code>, however it is printing the pointer of the <code>Object</code> rather than the value.</p>
  
  <p>This is my printing code...</p>
  
  <pre><code>for(int i=0;i&lt;list.size();i++){
      System.out.println(list.get(i));
  } 
  </code></pre>
  
  <p>Could anyone please help me why it isn't printing the value of the elements.</p>