File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

result value

 
phani kon
Ranch Hand
Posts: 251
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the below code I am using a division operator division. How would I get the value of d?


 
Campbell Ritchie
Sheriff
Pie
Posts: 47281
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic