1 package guyu.day0824;
2
3 /**
4 * @Author: Fred
5 * @Date: 2020/8/24 09:29
6 */
7 public class Demo01 {
8 public static void main(String[] args) {
9
10 //使用 System 的 getProperty() 方法来获取当前的工作目录:
11 String curDir = System.getProperty("user.dir");
12 System.out.println("你当前的工作目录为 :" + curDir);
13 }
14 }
没有个性 哪来的签名!
详情请关注点我:https://www.cnblogs.com/guyu-/
持续更新中··· ···