Here you can find the source of celsiusToFahrenheit(Double celsius)
public static Double celsiusToFahrenheit(Double celsius)
//package com.java2s; /**//w w w .j av a2s. c o m * Copyright (c) 2010-2016, openHAB.org and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ public class Main { /** * Converts celsius to fahrenheit. */ public static Double celsiusToFahrenheit(Double celsius) { if (celsius == null) { return null; } return celsius * 1.8 + 32.0; } }