int last = path.lastIndexOf(separatorChar); return path.substring(last + 1);
int nameSeqIndex = 0;  if (separatorChar == '\\' && path.length () > 1) {   if ((path.charAt (0) == '\\' && path.charAt (1) == '\\') || (((path.charAt (0) >= 'a' && path.charAt (0) <= 'z') || (path.charAt (0) >= 'A' && path.charAt (0) <= 'Z')) && path.charAt (1) == ':')) { if (path.length () > 2) nameSeqIndex = 2; else return ""; } }  String nameSeq = (nameSeqIndex > 0 ? path.substring (nameSeqIndex) : path);  int last = nameSeq.lastIndexOf (separatorChar);  return nameSeq.substring (last + 1);
  public String getName ()  {    int last = path.lastIndexOf(separatorChar);    return path.substring(last + 1);  }