首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

java查看全部系统信息

2012-09-08 
java查看所有系统信息获取System的属性值,代码如下:Properties p System.getProperties()Enumeration e

java查看所有系统信息
获取System的属性值,代码如下:

Properties p = System.getProperties();Enumeration e = p.keys();while (e.hasMoreElements()) {String key = (String) e.nextElement();String value = System.getProperty(key);System.out.println(key + "=" + value);}

热点排行