Here you can find the source of arrayContains(Object[] array, Object el)
public static boolean arrayContains(Object[] array, Object el)
//package com.java2s; //License from project: Creative Commons License import java.util.Arrays; public class Main { public static boolean arrayContains(Object[] array, Object el) { return Arrays.asList(array).contains(el); }//from w w w . j av a 2 s .c o m }