import java.io.*;
public class Test {
public static void main(String[] args) {
System.out.println("Current Working Dir: " + new File("").getAbsolutePath());
System.out.println("Current Working Dir: " + System.getProperty("user.dir"));
}
}
Java如何获得当前目录代码示例
最新推荐文章于 2022-05-03 11:15:25 发布