Here you can find the source of array(int[] array, int index)
public static String array(int[] array, int index)
//package com.java2s; public class Main { private static final String EMPTY = ""; private static final String CHECKED = "checked"; public static String array(int[] array, int index) { if ((array == null) || (index >= array.length) || (index < 0)) { return EMPTY; }/* ww w. j a v a 2 s .c om*/ return (array[index] != 0) ? CHECKED : EMPTY; } public static String array(long[] array, int index) { if ((array == null) || (index >= array.length) || (index < 0)) { return EMPTY; } return (array[index] != 0) ? CHECKED : EMPTY; } public static String array(float[] array, int index) { if ((array == null) || (index >= array.length) || (index < 0)) { return EMPTY; } return (array[index] != 0) ? CHECKED : EMPTY; } public static String array(double[] array, int index) { if ((array == null) || (index >= array.length) || (index < 0)) { return EMPTY; } return (array[index] != 0) ? CHECKED : EMPTY; } }