Check Software Version Numbers
A popular version labeling convention for software is in the format:
{major}.{minor}.{bug} *this is known as Semantic Versioning

You are implementing a sophisticated library dependency management tool that has a feature which always chooses the latest version of a library. You are passed two different version strings, and should return the latest of the two. If one of the two are null, an empty string, or poorly formatted, then the other should be chosen. If both inputs are problematic, then you should throw an IllegalArgumentException.


Answers are hidden from search engines.
coding strings