Java List Contain contains(List list, int[] arr)

Here you can find the source of contains(List list, int[] arr)

Description

contains

License

Open Source License

Declaration

public final static boolean contains(List<int[]> list, int[] arr) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public final static boolean contains(List<int[]> list, int[] arr) {
        for (int[] arr2 : list) {
            if (arr.length != arr2.length)
                continue;
            for (int i = 0; i < arr2.length; i++)
                if (arr2[i] != arr[i])
                    continue;
            return true;
        }/*  w  w w.ja  v  a 2  s  . c  o  m*/
        return false;
    }
}

Related

  1. contains(List list, Object obj)
  2. contains(List lsttor, Object val)
  3. contains(List list, Object element, int begin, int end)
  4. contains(List objects, Object object)
  5. contains(List listOfArrays, A[] array)
  6. contains(List list, List> listOfLists)
  7. contains(List list, String str, boolean bcaseSensitive)
  8. contains(List list, String string)
  9. contains(List list1, List list2)