title: Newbe on printing Types
body: <p>I'm trying to follow the &quot;Head First Kotlin&quot; book exercises and I wrote the following code:</p>
  <pre><code>val numList = arrayOf(1,2,3);
  var x = 0;
  
  fun main() {
      while (x &lt; 3) {
          println(&quot;Item $x is $numList[x]&quot;);
          x += 1;
      }
  }
  </code></pre>
  <p>Kotlin printed:</p>
  <pre><code>Item 0 is [Ljava.lang.Integer;@30f39991[x]
  Item 1 is [Ljava.lang.Integer;@30f39991[x]
  Item 2 is [Ljava.lang.Integer;@30f39991[x]
  </code></pre>
  <p>But I expected to be:</p>
  <pre><code>Item 0 is 1
  Item 1 is 2
  Item 3 is 3
  </code></pre>
  <p><em>What am I doing wrong?
  Any help would be greatly appreciated!</em></p>