code: public static String getName(String path)
     {
        int pos = path.lastIndexOf('/');
        return pos >= 0 ? path.substring(pos + 1) : "";
     }
docs: Returns the name part of the path
  
  @param path
  the path
  @return the name part