Last active
January 5, 2016 06:50
-
-
Save shibli049/71249f52b76f5b183480 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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