Here you can find the source of isEmpty(final int[] arr)
public static boolean isEmpty(final int[] arr)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**/* ww w . ja va 2 s . c o m*/ * Checks if is null or empty. * * @param input * List<T> : list * @return true, if input is null or Empty */ public static <T> boolean isEmpty(final List<T> list) { return list == null || list.isEmpty(); } /** * Checks if is null or empty. * * @param input * String : str * @return true, if input is null or Zero */ public static boolean isEmpty(final String str) { return str == null || str.trim().length() == 0; } /** * Checks if is null or empty. * * @param input * Integer : value * @return true, input if is null or Zero */ public static boolean isEmpty(final Integer value) { return value == null || value.intValue() == 0; } public static boolean isEmpty(final int[] arr) { return arr.length == 0; } /** * Checks if is null or Zero. * * @param input * the value * @return true, if input is null or Zero. */ public static boolean isEmpty(final Short value) { return value == null || value.intValue() == 0; } /** * Checks if an array of String is empty * @param strArr * @return true, if input empty. */ public static boolean isEmpty(final String[] strArr) { return strArr.length == 0; } }