Here you can find the source of intArrayContains(int val, int[] array)
public static boolean intArrayContains(int val, int[] array)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { /**/*from w w w. j a v a 2s .c o m*/ * Returns true if int array 'array' contains value 'val'. */ public static boolean intArrayContains(int val, int[] array) { for (int i = 0; i < array.length; i++) if (val == array[i]) return true; return false; } }