Here you can find the source of inArray(Object o, Object... arr)
public static boolean inArray(Object o, Object... arr)
//package com.java2s; public class Main { public static boolean inArray(Object o, Object... arr) { for (Object object : arr) { if (o == object) return true; }//from w w w . j a va 2 s . c o m return false; } }