The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Campbell Ritchie wrote:Welcome again.
How are you working out factorials? That looks like no factorial algorithm I have ever seen. For factorials of arguments greater than 12, you should use a long rather than an int. I think you run out of capacity in longs after about 23!
Andrew Monkhouse wrote:
Please take a moment to learn about [code] and [/code] ubb code blocks and how to indent your code. One example of a coding style is the CodeRanch coding style - you don't have to follow it, but you should follow some style guide. Trying to read code that is not formatted is very difficult. Most people are likely to ignore your post and go on to one that is easier to read.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Nathan Whitaker wrote:I seem to be missing [...] the rules on this forum according to whomever first responded if I understood his reply correctly.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Don't get me started about those stupid light bulbs. |