Java examples for Native OS:Windows
is Windows
//package com.java2s; public class Main { public static boolean isWin() { boolean isWin = false; String osName = System.getProperty("os.name"); if (osName.contains("Windows")) isWin = true;/*from www.j a va2s.com*/ return isWin; } }