You can't access a variable that does not exist. You have to declare the variable
output or change it to
"" + Chill + "", as TheBeginning said above:
At line 28: 'output' is not defined. It's supposed to be a String. Fill in:
If you are using an
IDE (
Integrated Development Environment) , you should get a red underline under
output.
If you are not using an ide, I suggest you to download any free one.
Using an
IDE will make debugging, testing, compiling, exporting, creating complex applications and write long files easier!
My favourite
IDE is
Eclipse. It's free and you can download it from
Eclipse's official website!
Eclipse has great debugging tools, file managing system and is very customizable with built-in-, user created- and customizable themes, syntax highlighting and more.
EDIT: Also, you have named your
Temperature-variable with the same name as your class, and that might cause problems when you call it (It doesn't seem to do that for you, because the program executes until it gets to the last line of code (which means that it has passed the lines with the calls for the
Temperature-variable)).
/TheDDestroyer12