public static <T> boolean contains(T[] array, T value) {for (T element : array) {if (element == null) {if (value == null) return true;} else {if (value != null && element.equals(value)) return true;}}return false;}
public static bool contains(int[] array, int value){foreach (int element in array){if (element == value){return true;}}return false;}