如题~麻烦介绍一下!

解决方案 »

  1.   

    separator
    public static final String separator
    The system-dependent default name-separator character, represented as a string for convenience. This string contains a single character, namely separatorChar. separatorChar
    public static final char separatorCharThe system-dependent default name-separator character. This field is initialized to contain the first character of the value of the system property file.separator. On UNIX systems the value of this field is '/'; on Microsoft Windows systems it is '\'. See Also:
    System.getProperty(java.lang.String)
      

  2.   

    文件分隔符,各个操作系统不一样
    如WIndows的是"\",而Unix的是"/"
      

  3.   

    java中,"\\"表示分隔,相当于在windows中的"\'