code: public static boolean contains(Object[] arr, Object obj) {
          if (arr != null) {
              for (int i = 0; i < arr.length; i++) {
                  Object arri = arr[i];
                  if (arri == obj || (arri != null && arri.equals(obj))) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Returns where an object is in a given array.
  
  @param arr the <code>Object[]</code> to search.
  @param obj the <code>Object</code> to search for.
  @return <code>true</code> of <code>obj</code> is in <code>arr</code>,
  <code>false</code> otherwise. Returns <code>false</code> if
  <code>arr</code> is <code>null</code>.