title: Printing Java Collections Nicely (toString Doesn't Return Pretty Output)
body: <p>I wish to print a <code>Stack&lt;Integer&gt;</code> object as nicely as the Eclipse debugger does (i.e. <code>[1,2,3...]</code>) but printing it with <code>out = "output:" + stack</code> doesn't return this nice result.</p>
  
  <p>Just to clarify, I'm talking about Java's built-in collection so I can't override its <code>toString()</code>.</p>
  
  <p>How can I get a nice printable version of the stack?</p>