首页 > 其他 > 详细

java getEnv不区分大小写 getProperty区分大小写

时间:2014-02-28 07:07:14      阅读:469      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
System.out.println(System.getenv("JAVA_HOME"));  
System.out.println(System.getenv("Path"));  
System.out.println(System.getenv("PATH"));//不区分大小写
System.out.println(System.getenv("Tmp"));  

System.out.println("-------------------------------------");  
System.out.println(System.getProperty("os.name"));  
System.out.println(System.getProperty("OS.NAME"));//区分大小写
System.out.println(System.getProperty("temp"));  
System.out.println(System.getProperties());
bubuko.com,布布扣

java getEnv不区分大小写 getProperty区分大小写,布布扣,bubuko.com

java getEnv不区分大小写 getProperty区分大小写

原文:http://www.cnblogs.com/beiyeren/p/3571346.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!