Here you can find the source of arrayContains(final T[] array, final T v)
public static <T> boolean arrayContains(final T[] array, final T v)
//package com.java2s; public class Main { public static <T> boolean arrayContains(final T[] array, final T v) { for (final T e : array) if (e == v || v.equals(e)) return true; return false; }//from ww w. j a v a 2 s . com }