| Author |
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
Sheriff
Joined: Oct 13, 2005
Posts: 32712
|
|
Please use ctrl-C ctrl-V to copy your code, so as to avoid spelling errors like if(scat=="ALL) 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.
|
 |
 |
|
|
subject: result value
|
|
|