public static boolean match(String name,int majorVersion,int minorVersion){
  return osName.equalsIgnoreCase(name) && (osMajorVersion == majorVersion) && (osMinorVersion == minorVersion);
}

public static boolean match ( String name , int majorVersion , int minorVersion ) { return osName . equalsIgnoreCase ( name ) && ( osMajorVersion == majorVersion ) && ( osMinorVersion == minorVersion ) ; }
check if version current operating system matches with a given version < br > < br >
