I am getting error: Undefined symbol:length.
import java.util.*; class ssss { public static void main(String args[]) { int a[]={1,2,3,4}; Sy
length is a public attribute not a method in array. Therefore, we access the length of array as :
int x = a.length;
and not as,
int x = a.length();