Here you can find the source of arrayContains(Object obj, Object[] array)
public static boolean arrayContains(Object obj, Object[] array)
//package com.java2s; /*// w ww. j a va 2 s. c o m * Copyright 2000-2013 Enonic AS * http://www.enonic.com/license */ public class Main { public static boolean arrayContains(Object obj, Object[] array) { for (int i = 0; i < array.length; ++i) { if (array[i].equals(obj)) { return true; } } return false; } }