java判断当前系统是win还是linux

private static final boolean isWin = System.getProperty("os.name").toLowerCase().contains("win");

private static final boolean isLinux = System.getProperty(“os.name”).toLowerCase().indexOf(“linux”) >= 0;

posted @ 2020-04-11 18:09  ジ绯色月下ぎ  阅读(6011)  评论(0编辑  收藏  举报