Here you can find the source of contains(final char[] pItems, final char pItem)
public static final boolean contains(final char[] pItems, final char 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; }/*from www.j a va 2 s. 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; } }