title: Java - print a List<>
body: <p>Assuming I have a <code>List&lt;Item&gt;</code> and I want to print it so that it will be printed as <code>[ item print, item print, ...]</code>, but I don't know the dynamic type of the List. (There is an implementation for Item.toString() , print for example "item print").</p>
  
  <p>Is there a way for me to easily print it?</p>
  
  <p>I have tried to search for answers, but all of them seem to be of lists that we do know the dynamic type (such as ArrayList), where in my case I do not know. Also, java's oracle's documentation of Collection and List does not seem to have the toString() method mentioned.</p>
  
  <p>Thanks!</p>