public static boolean isWindows(){
  String osName=System.getProperty("os.name");
  osName=osName.toLowerCase();
  return osName.indexOf("windows") != -1;
}

public static boolean isWindows ( ) { String osName = System . getProperty ( "os.name" ) ; osName = osName . toLowerCase ( ) ; return osName . indexOf ( "windows" ) != - 1 ; }
do we run on windows
