Here you can find the source of arrayContains(Object[] element, Object[][] array)
public static boolean arrayContains(Object[] element, Object[][] array)
//package com.java2s; import java.util.Arrays; public class Main { public static boolean arrayContains(Object[] element, Object[][] array) { for (int j = 0; j < array.length; j++) { if (Arrays.equals(element, array[j])) return true; }// w w w . j av a 2 s . c om return false; } }