获取系统信息

public static void main(String[] args) {
Properties properties = System.getProperties();
Iterator<Entry<Object, Object>> iterator = properties.entrySet().iterator();
while (iterator.hasNext())
{
Entry<Object, Object> entry = iterator.next();
System.out.println(entry.getKey() + "===" + entry.getValue());
}
}

posted @ 2018-03-15 21:08  baby孔祥超  阅读(107)  评论(0编辑  收藏  举报