title: Assigning scala empty array
body: <p>I'm totally new to Scala. Here I have tried to assign a empty array to a variable, it was successful.  But when I tried to append an integer element to the variable an error occured as below:</p>
  
  <pre><code>var c=Array()
  
  c: Array[Nothing] = Array()
  
  scala&gt; c=Array(1)
  
  &lt;console&gt;:8: error: type mismatch;
   found   : Int(1)
   required: Nothing
         c=Array(1)
             ^
  </code></pre>
  
  <p>What is the reason for this?</p>