It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes result value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "result value" Watch "result value" New topic

result value

phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
In the below code I am using a division operator division. How would I get the value of d?

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46412
Please use ctrl-C ctrl-V to copy your code, so as to avoid spelling errors like


You ought not to use the == operator to check objects (which includes Strings); try

if ("ALL".equals(scat))

instead. And make sure that you are using exactly the correct spelling for ALL.
Have you really declared "double d" in the if? In that case the code won't compile in the first place. PostRealCode, please.
I agree. Here's the link:
subject: result value
It's not a secret anymore!