Here you can find the source of arrayContainsInt(int[] array, int test)
public static boolean arrayContainsInt(int[] array, int test)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean arrayContainsInt(int[] array, int test) { for (int i = 0; i < array.length; i++) { if (array[i] == test) { return true; }/*from w w w . ja va2 s . c o m*/ } return false; } }