/** * Tells whether the given array contains the specified element. * * @param o element whose presence in the array is to be tested. * @return <tt>true</tt> if the array contains the specified element. */ public static boolean contains(Object[] a, Object o) { return indexOf(a, o) != -1; } }
/** * Tells whether the given array contains the specified element. * * @param o element whose presence in the array is to be tested. * @return <tt>true</tt> if the array contains the specified element. */ public static boolean contains(Object[] a, Object o) { return indexOf(a, o) != -1; } }