Re: what am I doing wrong?
ok, for a start, have another look at your class name.
Its Temperature0000
yet you are using a constructor of Temperature().
Cheers
Re: what am I doing wrong?
With a quick look, you create a Temperature variable t2,
yet you call t1.setNewDegrees();
when you have no t1 variable created
I would also recommend you move the Scanner out of the temperature class. Its probably more appropriate in your class with the main method.
Try to consider your Temperature class as an object, so it may have 'things' that all objects have. For example a person, has arms, legs etc.
You can consider these items in an object as defining the 'state' of an object.
your Temperature object may have :
temperature in degrees,
units - Fahrenheight or Celsius,
maybe a maximum temperature and minimum temperature
etc..
other than state, objects also have behaviour.
for example, you can :
increase or decrease the temperature,
convert the temperature to other units
etc..
So try to think of things as objects having state (things that identify it) and behaviour (actions that the object can perform).
If you think about it like this, I find it much easier to create more useable classes.
I know the above is slightly off topic, but I believe it's useful to understand object oriented practices in order to create better applications.
See how it goes after you look at what I put in the top of my post and if there are still errors, post more details, perhaps include the error you are getting.