Java Array Has arrayHasElements(Object[] obj)

Here you can find the source of arrayHasElements(Object[] obj)

Description

array Has Elements

License

Apache License

Declaration

public static boolean arrayHasElements(Object[] obj) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean arrayHasElements(Object[] obj) {
        if (obj != null && obj.length != 0) {
            for (Object object : obj) {
                if (object != null) {
                    return true;
                }// w  w w. j a v a2 s . c om
            }
        }
        return false;
    }
}

Related

  1. arrayHas(int[] arr, int val)
  2. arrayHasContent(Object[] array)
  3. arrayHasContiguousRowEntries(double[] aVector)
  4. arrayHasTaints(int[] a)
  5. inArray(byte needle, byte[] haystack)
  6. inArray(byte needle, byte[] haystack)
  7. inArray(char[] array, char c)