public class ConversionTools { public static double centigradeToFahrenheit(double temp) { return temp * (9.0 /5.0) + 32.0; } public static double fahrenheitToCentigrade(double temp) { return 5.0 * (temp - 32.0) / 9.0; } }