Here you can find the source of isEmpty(V[] sourceArray)
Parameter | Description |
---|---|
V | < > |
sourceArray | a parameter |
public static <V> boolean isEmpty(V[] sourceArray)
//package com.java2s; public class Main { /**/*www . j av a 2 s . c o m*/ * is null or its length is 0 * * @param <V> * @param sourceArray * @return */ public static <V> boolean isEmpty(V[] sourceArray) { return (sourceArray == null || sourceArray.length == 0); } }