code: public String getClassTypeName(Class<?> clazz) {
          
          String type = null;
  
          if (clazz.isInterface()) {
              type = "interface";
          }
          else if (clazz.isPrimitive() || clazz.isArray()) {
              // type already null
          }
          else {
              type = "class";
          }
  
          return type;
      }
docs: Returns the type of the specified class.
  <p>
  <UL>
  <LI>A Class returns "class"
  <LI>An Interface returns "interface"
  <LI>An array returns null
  <LI>A primitive returns null
  </UL>