title: Find the length/size of an integer array
body: <p>I have an integer array <code>int[] a = new int [5]</code>.</p>
  
  <p>In my code I am storing only 2 values at indices 0 and 1.</p>
  
  <p><code>a[0]=100</code> and <code>a[1]=101</code></p>
  
  <p>Now I need to get the array size/length as 2.</p>
  
  <p>What I should do?</p>