Java Integer Array Create intArrayContains(int[] array, int key)

Here you can find the source of intArrayContains(int[] array, int key)

Description

int Array Contains

License

Apache License

Declaration

public static boolean intArrayContains(int[] array, int key) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean intArrayContains(int[] array, int key) {
        for (final int i : array) {
            if (i == key) {
                return true;
            }/* w  w w .  j a v a2 s.c o  m*/
        }
        return false;
    }
}

Related

  1. intArray(int len)
  2. intArray(Integer... values)
  3. intArray(String data)
  4. intArrayConcat(int[] a, int[] b)
  5. intArrayContains(int val, int[] array)
  6. intArrayEquals(int[] a1, int[] a2)
  7. intArrayFromString(final String data)
  8. intArrayFromString(String record)
  9. intArrayMin(int[] arr)