In array class we have a static variable defined "length", which holds the number of elements in array object. You can use that to find the length as:
if(arrayName.length == 0)
System.out.println("array empty");
else
System.out.println("array not empty");