Here you can find the source of arrayContains(final Object[] a, final Object v)
public static boolean arrayContains(final Object[] a, final Object v)
//package com.java2s; //License from project: Apache License public class Main { public static boolean arrayContains(final Object[] a, final Object v) { for (final Object x : a) { if (v == null) { if (x == null) return true; } else { if (v.equals(x)) return true; }//from www. ja v a 2 s. c o m } return false; } }