Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Bert Bates wrote:- implements the above
- is meaningfully different than all previous entries
- can somehow be defended as a "good" way to go![]()
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Mike Simmons wrote:Alternate performance-uber-alles version:
Mike Simmons wrote:Alternate performance-uber-alles version:
<snip>
Of course the performance of all the computation is irrelevant next to the performance of System.out, but oh well.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Mike Simmons wrote:(d) It uses an uncommon style for ternary operators that I feel should be more widely known.
Ernest Friedman-Hill wrote:Personal extremely picky pet peeve: "i++" is traditional here, and everybody uses it without a thought. But "++i" is simpler at the opcode level and requires no more typing. I realize any optimizer worth two cents will make the difference irrelevant but still, it irks me.
Mike Simmons wrote:Andrew: interesting point about the single print statement. Though if there's enough output, it may be better to print as you go, rather than saving it all up for the end. Perhaps a BufferedOutputStream or BufferedWriter could be worked into the mix, instead of the StringBuilder.
Maneesh Godbole wrote:I mean its 4 clauses right? For ternary?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Andrew Monkhouse wrote:Yeah, that's for very large values of two (alternatives).
.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
luck, db
There are no new questions, but there may be new answers.
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)