title: Scala - creating a type parametrized array of specified length
body: <p>If in Scala IDE try the following:</p>
  
  <pre><code>val chars = Array[Char](256)
  </code></pre>
  
  <p>it is all fine. But if I do this:</p>
  
  <pre><code>val len = 256
  val chars = Array[Char](len)
  </code></pre>
  
  <p>it says that it expects a <code>Char</code> instead of <code>len</code>? Why? I expect the behavior to be the same! Why does it think that I want to put that thing in the array instead of specifying it's size? As far as I know, there is no constructor for arrays that takes a single argument to place it inside the array.</p>