Here you can find the source of length(Object[] array)
public static int length(Object[] array)
//package com.java2s; /**//from ww w . j a v a2 s.c o m * Aptana Studio * Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions). * Please see the license.html included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ public class Main { public static int length(Object[] array) { if (isEmpty(array)) { return 0; } return array.length; } public static boolean isEmpty(Object[] array) { return array == null || array.length == 0; } }