获取系统信息

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());
}
}

原文地址:https://www.cnblogs.com/kongxc/p/8576308.html