code: public static boolean isWindows() {
  		String os = System.getProperty("os.name").toLowerCase();
  		return os.indexOf("windows") != -1 || os.indexOf("nt") != -1;
  	}
docs: Checks the Operating System.
  
  @return true if the current os is Windows