title: How many elements of array are not null?
body: <p>An array is defined of assumed elements like I have array like <strong><em>String[] strArray = new String[50];</em></strong>.</p>
  
  <p>Now from 50 elements only some elements are assigned and remaining are left null then I want the number of assigned elements.</p>
  
  <p>Like here only 30 elements are assigned then I want that figure.</p>