title: how to count number of items in an array android
body: <p>How can I count the number of items in an array in android?</p>
  
  <p>here is the code that dose not work</p>
  
  <pre><code>if (vehicleList.length = 1){
       //do something                  
                       }
  </code></pre>
  
  <p>can anyone help?</p>