java lang error when using toArray() : <p>Here is my basic setup:</p>

<pre><code>ArrayList&lt;String&gt; myList = new ArrayList&lt;&gt;();
myList.add("test");
String[] arr = myList.toArray(new String[myList.size()]);
System.out.println(arr);
</code></pre>

<p>And i get the classic error: [Ljava.lang.String;@1540e19d</p>

<p>Can anyone explain and help me fix it?</p>
