code: public static String[] getInterfaceNames(Class<?> c) {
          Class<?>[] interfaces = c.getInterfaces();
          List<String> names = new ArrayList<>();
          for (Class<?> i : interfaces) {
              names.add(i.getName());
          }
          return names.toArray(new String[0]);
      }
docs: Gets the all interface names of this class
  
  @param c The class of one object
  @return Returns the all interface names