JAVA经常使用代码。干货来啦!

1.获取环境变量 System.getenv(“PATH”); System.getenv(“JAVA_HOME”); 2.获取系统属性 System.getProperty(“pencil color”); // 获得属性值 java -Dpencil color=green System.getProperty(“java.specification.version”); // 获得Java版
相关文章
相关标签/搜索