Java Array Contain arrayContainsInt(int[] array, int test)

Here you can find the source of arrayContainsInt(int[] array, int test)

Description

array Contains Int

License

Open Source License

Declaration

public static boolean arrayContainsInt(int[] array, int test) 

Method Source Code

//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;
    }
}

Related

  1. arrayContains1(String[] parent, String[] child)
  2. arrayContainsElement(T[] array, T element)
  3. arrayContainsEntry(T[] array, T entry)
  4. arrayContainsIgnoreCase(String[] array, String searchKey)
  5. arrayContainsIgnoreCase(String[] array, String str)
  6. arrayContainsLower(String[] lemmas, String string)
  7. arrayContainsNumber(Number[] array, Number number)
  8. arrayContainsOK(final byte[] b)
  9. arrayContainsOnlyIgnoreCase(String[] array, String... strs)