title: Is it possible to populate array with user input in scala?
body: <p>I am trying following but getting error "variable arr of type Array[Int] does not take type parameters."</p>
  
  <pre><code>object try_arr
  {
    def main(args: Array[String])
    {
      var arr = new Array[Int](3)
          for(i&lt;- 1 to 3)
          {
            val num = scala.io.StdIn.readInt()
            arr[i] = num
          }
        }
      }
  </code></pre>