code: public static boolean hasSuperClass(Class<?> has, Class<?> in)
      {
          if (in.equals(has))
          {
              return true;
          }
          boolean match = false;
          // stop if the superclass is Object
          if (in.getSuperclass() != null && in.getSuperclass().equals(Object.class))
          {
              return match;
          }
          match = in.getSuperclass() != null ? hasSuperClass(has, in.getSuperclass()): false;
          return match;
      }
docs: Checks for super "has" in class "in".
  
  @param has
  the has
  @param in
  the in
  
  @return true, if exists?