Thanks,<br /> Zafer<br /> SCJP, SCWCD
- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Tony Morris
Java Q&A (FAQ, Trivia)
It's possible that you might get such a number, but I'm guessing it's not practically possible.
Tony Morris
Java Q&A (FAQ, Trivia)
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Jim Yingst:
yucky code
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
You call compound statements in a conditional, assignment and equality tests on the same line, and compareTos on Strings that just happen to be numbers clear code?
Sure. At least as clear as "num.replaceFirst("-?2(\\d{1,9})","$1")" to extract the last 9 digits. :roll: I could insert comments if you like, but .
I like. People who don't comment code should be beaten on sight.
compound statements in a conditional
I'm sorry, I forgot that a simple || or && requires a new line.
It's ok: it seems that you're taking coding lessons from the same person who's teaching you spec-readin'.
Dunno. Everything looks pretty normal to me, except that it looks like you're indenting with one space per level. It that intentional? What do you see?
the one space is, but the entire topic seems skewed to me: like you might get with a long sentence. Are you using a wider screen? I'm on a 15' laptop.
M
ps - for simple Swing development, would you go with Eclipse or IDEA?
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
You must unlearn what you have learned
I suppose the other part of the response to the try/catch solution with parseInt() would be: "There is no try. Only do."
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
Originally posted by Max Habibi:
Pop quiz: there's one number that's valid, but rejected here. What is it?
Tony Morris
Java Q&A (FAQ, Trivia)
"I'm not back." - Bill Harding, Twister
Everyone? Not at all.
Tony Morris
Java Q&A (FAQ, Trivia)
"I'm not back." - Bill Harding, Twister
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
"I'm not back." - Bill Harding, Twister
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
42
Originally posted by Jeroen Wenting:
Of course if you use Double.parseDouble you're still in trouble when the number is larger than a double can hold.
"I'm not back." - Bill Harding, Twister
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|