File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Inverting number on drjava Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inverting number on drjava" Watch "Inverting number on drjava" New topic
Author

Inverting number on drjava

Justine Furlong
Greenhorn

Joined: Jan 20, 2013
Posts: 1
I'm taking my first introductory course on computer science and we went over converting Fahrenheit to Celsius.


The above is my code, but I'm getting bunch of errors...I have no idea what I'm doing. Any help would be greatly appreciated.--
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1505
    
    5

Hi Justine,

Welcome to CodeRanch!

Please, TellTheDetails(<-click). Can you please provide more details about what errors are you facing? I found a couple of compilation errors when I copy-pasted your code:
1) degreesInFahrenheit is int and 32.0 is double. You need to make sure that datatypes are same during subtraction.
2) Strangely, the minus sign gave me another error - it looks like some other character than minus sign.

Apart from this, let us know if you face any other issues.

Also, please UseCodeTags(<-click). Code tags can be added by using 'Code' button during writing the post. I've added those for you this time.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
 
wood burning stoves
 
subject: Inverting number on drjava