Here you can find the source of findAll(int[] arr1, int[] arr2)
public static boolean findAll(int[] arr1, int[] arr2)
//package com.java2s; //License from project: LGPL import java.util.Arrays; public class Main { public static boolean findAll(int[] arr1, int[] arr2) { for (int a1 : arr1) { if (!find(a1, arr2)) { return false; }/*from w w w .j a v a 2 s . c om*/ } return true; } public static boolean find(int a, int[] l) { return Arrays.binarySearch(l, a) >= 0; } }