CustomFeatureTemperature.java 293B

12345678910111213141516
  1. public class CustomFeatureTemperature
  2. {
  3. public double farhenheatTocelcius(double temperature)
  4. {
  5. return ((temperature - 32) * 5/9);
  6. }
  7. public double celciustoFarhenheat(double temperature)
  8. {
  9. return ((temperature * 9/5) + 32);
  10. }
  11. }