记录下Java下使用System.getProperties()得到一个常用的系统信息,包括系统的名称等软硬件信息、Java的环境信息,直接上代码: private static void property() throws UnknownHostException { Runtime r = Runtime.getRuntime(); Properties props = System.getProperties(); InetAddress addr; addr = InetAddress.getLocalHo…