How to compare Built_versions???
A client application needs to determine if the server to which it is connecting is compatible.
The server will inform the client which versions it supports, for instance responding with a min_version="5.0.1_1" and a max_version="5.0.10_1".
The client application needs to compare these versions with its own build version, for instance build_version="5.2.6_5" would be compatible.
Please produce client code using Java that will indicate to the user whether the client is:
a) compatible with the server
b) older than the minimum supported version
c) newer than the maximum supported version
How can we compare the build_version, which is a string???
How can we separate the numbers and compare the versions???