public static String getSystemType() {
String result = "windows";
if (System.getProperty("os.name").equals("Linux"))
result = "linux";
else if ("Mac OS X".equals(System.getProperty("os.name")))
result = "Mac OS X";
return result;
}
java判断操作系统
最新推荐文章于 2022-05-23 18:15:55 发布