There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Twitter @realEdwinTorres
A Map . . . models the mathematical function abstraction. Their italics.
Campbell Ritchie wrote:...It is worth adding Exceptions if the argument is too big (I forget, but I think 22! is the largest factorial which will fit into a long) or negative.
Twitter @realEdwinTorres
Aww shucks! You've got me all embarrassedEdwin Torres wrote: . . . Man you're good! Nice.
Campbell Ritchie wrote:It's simply standard defensive programming, considering what will breach the class invariants (or in this case produce an arithmetic overflow or a stack overflow) and taking notice.
Twitter @realEdwinTorres
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
It seems so appropriate that Void cannot be instantiatedRob Spoor wrote: . . . Void cannot be instantiated . . .