com.ora.jsp.util
Class TempConverter

java.lang.Object
  extended bycom.ora.jsp.util.TempConverter

public class TempConverter
extends java.lang.Object

This class contains a couple of static methods for converting between Fahrenheit and Celsius. The methods are mapped to el functions in the book examples TLD file.

Version:
1.0
Author:
Hans Bergsten, Gefion software

Constructor Summary
TempConverter()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method to test the other methods.
static double toCelsius(double fahrenheit)
           
static double toFahrenheit(double celsius)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempConverter

public TempConverter()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main method to test the other methods.

Throws:
java.lang.Exception

toCelsius

public static double toCelsius(double fahrenheit)

toFahrenheit

public static double toFahrenheit(double celsius)