### Question:
Version implements Comparable<Version> { public static Version fromString(final String version) { final int firstDot = version.indexOf('.'); final int secondDot = version.indexOf('.', firstDot + 1); if (firstDot == -1 || secondDot == -1) { throw new IllegalArgumentException("<" + version + "> does not match format " + Version.FORMAT); } final int major = parse(version, 0, firstDot); final int minor = parse(version, firstDot + 1, secondDot); final int patch = parse(version, secondDot + 1, version.length()); return new Version(major, minor, patch); } Version(final int major, final int minor, final int patch); static Version fromString(final String version); @Override String toString(); int getMajor(); int getMinor(); int getPatch(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override int compareTo(final Version version); static Range<Version> createRangeOf(final Version from, final Version to); static final Version NULL; static final String NULL_VERSION_STRING; }### Answer:
@Test public void testCompare() throws Exception { Version.fromString("6.9.3"); Version.fromString("7.1.0"); }