Where is the thermostat located in a 1999 Toyota Camry and how do you replace it?

where is the thermostat located in a 1999 Toyota Camry located and how do you replace it.