is array Not Empty - Java Collection Framework

Java examples for Collection Framework:Array Element

Description

is array Not Empty

Demo Code

/*//from  www.  j  a  v a  2s  . c o  m
 * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */
//package com.java2s;

public class Main {
    public static <T> boolean isNotEmpty(T[] objects) {
        return (objects != null) && (objects.length > 0);
    }
}

Related Tutorials