This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
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 Groovy Fundamentals video training course this week in the Groovy 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: 1534
    
    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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Inverting number on drjava