Java Is Windows isWindows()

Here you can find the source of isWindows()

Description

is Windows

License

Open Source License

Declaration

public static boolean isWindows() 

Method Source Code


//package com.java2s;
import java.io.File;

public class Main {
    public static boolean isWindows() {
        String name = System.getProperty("os.name");
        return name != null ? name.contains("Windows") : File.separatorChar == '\\';
    }//from www . ja va2  s  .com
}

Related

  1. isWindows()
  2. isWindows()
  3. isWindows()
  4. isWindows()
  5. isWindows64JREAvailable()
  6. isWindowsAdministrator()