Java Array Contain arrayContains(Object[] element, Object[][] array)

Here you can find the source of arrayContains(Object[] element, Object[][] array)

Description

array Contains

License

Open Source License

Declaration

public static boolean arrayContains(Object[] element, Object[][] array) 

Method Source Code

//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;
    }
}

Related

  1. arrayContains(Object[] array, Object el)
  2. arrayContains(Object[] array, Object el)
  3. arrayContains(Object[] array, Object element)
  4. ArrayContains(Object[] array, Object obj)
  5. arrayContains(Object[] array, Object object)
  6. arrayContains(Object[] haystack, Object needle)
  7. arrayContains(String[] arr, String sg, boolean ignoreCase)
  8. arrayContains(String[] array, String str)
  9. arrayContains(String[] array, String value)