Java Array Length Get length(Object[] array)

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

Description

length

License

Open Source License

Declaration

public static int length(Object[] array) 

Method Source Code

//package com.java2s;

public class Main {

    public static int length(Object[] array) {
        if (array == null)
            return 0;
        return array.length;
    }/*from  w w  w  . j  a  v a  2  s.  co  m*/

    public static int length(int[] array) {
        if (array == null)
            return 0;
        return array.length;
    }

    public static int length(long[] array) {
        if (array == null)
            return 0;
        return array.length;
    }
}

Related

  1. length(int[] tail)
  2. length(int[][] instance, int u)
  3. length(long[] v)
  4. length(Object anArray[])
  5. length(Object[] array)
  6. length(Object[] array)
  7. length(Object[] buf)
  8. length(String[] arr)
  9. length(T[] a)