Java tutorial
//package com.java2s; /* * oxPush2 is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ import java.lang.reflect.Array; public class Main { public static boolean isEmpty(final Object[] array) { return getLength(array) == 0; } public static int getLength(final Object array) { if (array == null) { return 0; } return Array.getLength(array); } }