Java is equivalent to Net version class?

. Net system Does the version class have a Java equivalent? What do you say in Java?

Version myVersion = new Version(2,1);

Solution

Get the system / module version, such as string class. getPackage(). getImplementationVersion()

If you want to specify your own version, create a manifest Txt file to add to your jar file, such as this tutorial

See also the Javadoc of the package

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>