code: public static boolean isClassfile(final String path) {
          final int len = path.length();
          return len > 6 && path.regionMatches(true, len - 6, ".class", 0, 6);
      }
docs: Check if the path ends with a ".class" extension, ignoring case.
  
  @param path
  A file path.
  @return true if path has a ".class" extension, ignoring case.