### Question:
Arrays { public static <T> boolean isExist(Object[] array, T element) { if(array == null) return false; for(Object inElement: array) { if(inElement != null && inElement.equals(element)) { return true; } } return false; }  static boolean isExist(Object[] array, T element); static T[] cast(F[] fromArray, Class<T> clazz);  }### Answer:
@Test public void isExist(){ String[] arr = new String[]{"kamil","example"}; boolean isExist = Arrays.isExist(arr, "example"); assertTrue("Couldn't find element in " + arr , isExist); isExist = Arrays.isExist(arr, "exam"); assertFalse("Found element in " + arr , isExist); }