Java Array Length Get length(Object anArray[])

Here you can find the source of length(Object anArray[])

Description

Returns the length of a given object array (or zero, if null).

License

Open Source License

Declaration

public static int length(Object anArray[]) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from  w w w . j av  a 2  s . c  o  m*/
     * Returns the length of a given object array (or zero, if null).
     */
    public static int length(Object anArray[]) {
        return anArray != null ? anArray.length : 0;
    }
}

Related

  1. length(final T[]... arrays)
  2. length(float[] color)
  3. length(int[] tail)
  4. length(int[][] instance, int u)
  5. length(long[] v)
  6. length(Object[] array)
  7. length(Object[] array)
  8. length(Object[] array)
  9. length(Object[] buf)