code: public static <E> Set<E> asSet(E[] objs) {
          Set<E> objSet = null;
          if (objs != null) {
          objSet = new HashSet<>();
          for (E obj : objs) {
              objSet.add(obj);
          }
          }
          return objSet;
      }
docs: Returns a Set (specfically, a HashSet) with all the unique elements from
  the given array of objects. The set is mutable.
  
  @param objs An array of objects.
  @return A Set object containing all the unique elements from the array.