Comp Sci AB - quick question

<p>Okay, what collections have a built-in toString() method? Like, what collections could I do this:</p>

<p>Collection c = new (insert collection)();
// add stuff
System.out.println(list);</p>

<p>and get this in the output:</p>

<p>[1, 2, whatever, hello] etc.?</p>

<p>and yeah, I know they all have toString(), but which override it in that ^ way?</p>

<p>by barrons, it looks like all of them (Lists, Sets, and Maps)</p>

<p>yeah, lol, but i want to be sure… i’m gonna go test out my compiler.</p>