title: How to define arralist globally in kotlin
body: <p>For java class in android we used to declare an int array at top of Activity like <code>int[] intarray;</code>
    and the create the object where ever required with 
  intArray = new Int(size).</p>
  
  <p>What I do know that in kotlin to use array I need to do something like </p>
  
  <pre><code>val numbers: IntArray = intArrayOf(10, 20, 30, 40, 50)
  </code></pre>
  
  <p>What I am not able to do is only declare the object globally ie </p>
  
  <pre><code>val numbers: IntArray
  </code></pre>
  
  <p>In kotlin we declare variables like <code>val a: Int = 1</code> But as shown in basic syntax tutorial it does not let me only declare variable like <code>val c: Int</code> and then initialize it when required.It gives me error </p>
  
  <blockquote>
    <p>Property must be initialized or abstract</p>
  </blockquote>
  
  <p>I am getting wrong with the declaration part. As it does not let me define only <code>val numbers: IntArray</code>. Can someone tell me where I am getting wrong ?</p>