// 获取操作系统名称 201856584String osname = System.getProperty("os.name");System.out.println(osname); // Windows 7