public static boolean isWindowsPlatform(){
  String os=System.getProperty("os.name");
  return (os != null && os.startsWith(WIN_ID));
}

public static boolean isWindowsPlatform ( ) { String os = System . getProperty ( "os.name" ) ; return ( os != null && os . startsWith ( WIN_ID ) ) ; }
try to determine whether this application is running under windows or some other platform by examing the " os . name " property .
