code: public static String getExtension(String path) {
          int dot = path.lastIndexOf(".");
          if (dot == -1) {
              return "";
          } else {
              return path.substring(dot + 1, path.length());
          }
      }
docs: blabla.ahah.ohoh --> ohoh