📜  获取文件路径 java 代码示例

📅  最后修改于: 2022-03-11 14:52:40.908000             🧑  作者: Mango

代码示例1
File file = new File("yourfileName");
String path = file.getAbsolutePath();