e013. constructing a filename path.txt

来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 6 行

TXT
6
字号
A File object is used to represent a filename. Creating the File object has no effect on the file system; the filename need not exist nor is it created. 
On Windows, this example creates the path \a\b. On Unix, the path would be /a/b. 

    String path = File.separator + "a" + File.separator + "b";

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?