title: Java array.length method
body: <p>I am getting error: Undefined symbol:length.</p>
  
  <pre><code>import java.util.*;
  
  class ssss
  
  {
  
    public static void main(String args[])
  
      {
  
       int a[]={1,2,3,4};
       System.out.println(a[1]);
       int x = a.length();  
       System.out.println(x);
      }
  
  }
  </code></pre>