Skip to content

Instantly share code, notes, and snippets.

@shibli049
Last active January 5, 2016 06:50
Show Gist options
  • Save shibli049/71249f52b76f5b183480 to your computer and use it in GitHub Desktop.
Save shibli049/71249f52b76f5b183480 to your computer and use it in GitHub Desktop.
public static boolean isOsWindows() {
String osName = System.getProperty("os.name");
if (osName != null) {
osName = "";
}
return osName.toUpperCase().contains("WINDOWS");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment