JAVA获取操作系统的信息
时间:2014-05-15 05:04:41
收藏:0
阅读:219
列出所有信息:
Properties prop = System.getProperties();
prop.list(System.out);
获取某个信息:
String os = prop.getProperty("os.name");System.out.println(os);
注释:
os.name:系统名称
其余的有待探索,希望大家来补充哦
评论(0)