Here you can find the source of get(Object[] array, int index)
public static Object get(Object[] array, int index)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { /***********************************************************************/ public static Object get(Object[] array, int index) { return getArrayLength(array) > index ? array[index] : null; }/*from w w w.j a va2 s. c o m*/ /***********************************************************************/ public static Object get(List list, int index) { return list == null ? null : list.get(index); } /***********************************************************************/ public static int getArrayLength(Object[] array) { return array == null ? 0 : array.length; } }