Here you can find the source of contains(final int[] pItems, final int pItem)
public static final boolean contains(final int[] pItems, final int pItem)
//package com.java2s; public class Main { public static final boolean contains(final byte[] pItems, final byte pItem) { for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; }//w w w . ja v a 2s .c om } return false; } public static final boolean contains(final char[] pItems, final char pItem) { for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; } } return false; } public static final boolean contains(final short[] pItems, final short pItem) { for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; } } return false; } public static final boolean contains(final int[] pItems, final int pItem) { for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; } } return false; } public static final boolean contains(final long[] pItems, final long pItem) { for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; } } return false; } public static final boolean contains(final float[] pItems, final float pItem) { for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; } } return false; } public static final boolean contains(final double[] pItems, final double pItem) { for (int i = pItems.length - 1; i >= 0; i--) { if (pItems[i] == pItem) { return true; } } return false; } }