donaven100 wrote:You say versions but want build number? I don't see how it will work. You will get the same result for both 1.5_10 and 1.6_10.
I have a piece of code that will not work with some versions of Java. So I need to do a check for these. thanks for your code it works. But i do not understand how it works. i would really appreciate it if you can explain to me.
First off, the . stands for any character.
Anthony42 wrote:What doesn't change? I tested the method on the version in the first post, and on the version string returned by my system. But yes, it will fail on version strings that doesn't match the pattern.
I just put it in code, and it doesnt change anything. =D