Gets the major and minor version numbers from a version string. For
details about the syntax of the input {@code version}.
E.g., from x.y.z return x.y.
@param version The complete version string.
@return A string of the form <em>major</em>.<em>minor</em> containing
only the major and minor components of the version string.
Gets the major and minor version numbers from a version string. For details about the syntax of the input {@code version}. E.g., from x.y.z return x.y.
@param version The complete version string. @return A string of the form <em>major</em>.<em>minor</em> containing only the major and minor components of the version string.