获取系统信息
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());
}
}