Why does the BigInteger class have a few pre-defined static constants,
as in ZERO, ONE, and TEN?
Seems very arbitrary. What is the reasoning behind this in the first
BigIntegers are immutable, therefore it makes sense to share some
Traditionally, these three numbers crop up rather frequently, so
offering "shorthand" instances for them makes sense. Even more if you
consider the "static import" feature of java 1.5 - setBase(TEN) is much
clearer then setBase(new BigInteger(10))
|All times are GMT. The time now is 11:11 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.