集册 Java实例教程 数组不为空

数组不为空

欢马劈雪     最近更新时间:2020-01-02 10:19:05

543
数组不为空

/*

 * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.

 *

 * Copyright (c) 2014, Gluu

 */

//package com.nowjava;
/* from 
n o w j a v a . c o m - 时  代  Java*/


public class Main {

    public static <T> boolean isNotEmpty(T[] objects) {

        return (objects != null) && (objects.length > 0);

    }

}