Java List Size size(Object[] list)

Here you can find the source of size(Object[] list)

Description

size

License

Apache License

Declaration

public static int size(Object[] list) 

Method Source Code

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

import java.util.List;

public class Main {
    public static int size(Object[] list) {
        if (list == null) {
            return 0;
        } else {/*from  w ww .jav  a  2s .c om*/
            return list.length;
        }
    }

    public static int size(List<?> list) {
        if (list == null) {
            return 0;
        } else {
            return list.size();
        }
    }
}

Related

  1. getSize(List list)
  2. getSize(List positions)
  3. getSize(List sourceList)
  4. getSize(List sourceList)
  5. size(List list)
  6. sizeNotNull(final List list)
  7. sizeOf(List l)
  8. sizeOfListMap(Map> map)
  9. sizeOfStringToStringListMap( Map> m)