@@ -0,0 +1,2822 @@
+package com.jshoresdevelopment.conversioncalculator;%0A%0Aimport java.text.DecimalFormat;%0A%0Apublic class TemperatureConversions %7B%0A    private static DecimalFormat decimalFormat;%0A%0A    /** Returns converted values, by calling appropriate conversions */%0A    public static String convert(String fromUnit, String fromValue, String toUnit) %7B%0A        decimalFormat = new DecimalFormat(%22#.00#%22);%0A        switch (fromUnit) %7B%0A            case %22Celsius%22:%0A                return fromCelsius(fromValue, toUnit);%0A            case %22Kelvin%22:%0A                return fromKelvin(fromValue, toUnit);%0A            case %22Fahrenheit%22:%0A                return fromFahrenheit(fromValue, toUnit);%0A            default:%0A                return fromValue;%0A        %7D%0A    %7D%0A%0A    /** Returns a double parsed from string */%0A    private static double toDouble(String value) %7B%0A        return Double.parseDouble(value);%0A    %7D%0A%0A    /** Returns conversions from Celsius to other units */%0A    private static String fromCelsius(String fromValue, String toUnit) %7B%0A        double returnValue;%0A        switch (toUnit) %7B%0A            case %22Fahrenheit%22:%0A                returnValue = (toDouble(fromValue) * 1.8) + 32;%0A                return String.valueOf(decimalFormat.format(returnValue));%0A            case %22Kelvin%22:%0A                returnValue = toDouble(fromValue) + 273.15;%0A                return String.valueOf(decimalFormat.format(returnValue));%0A            default:%0A                return String.valueOf(decimalFormat.format(toDouble(fromValue)));%0A        %7D%0A    %7D%0A%0A    /** Returns conversions from Kelvin to other units */%0A    private static String fromKelvin(String fromValue, String toUnit) %7B%0A        double returnValue;%0A        switch (toUnit) %7B%0A            case %22Fahrenheit%22:%0A                returnValue = (((toDouble(fromValue) - 273.15) * 1.8) + 32);%0A                return String.valueOf(decimalFormat.format(returnValue));%0A            case %22Celsius%22:%0A                returnValue = toDouble(fromValue) - 273.15;%0A                return String.valueOf(decimalFormat.format(returnValue));%0A            default:%0A                return String.valueOf(decimalFormat.format(toDouble(fromValue)));%0A        %7D%0A    %7D%0A%0A    /** Returns conversions from Fahrenheit to other units */%0A    private static String fromFahrenheit(String fromValue, String toUnit) %7B%0A        double returnValue;%0A        switch (toUnit) %7B%0A            case %22Kelvin%22:%0A                returnValue = ((toDouble(fromValue) - 32) / 1.8) + 273.15;%0A                return String.valueOf(decimalFormat.format(returnValue));%0A            case %22Celsius%22:%0A                returnValue = (toDouble(fromValue) - 32) / 1.8;%0A                return String.valueOf(decimalFormat.format(returnValue));%0A            default:%0A                return String.valueOf(decimalFormat.format(toDouble(fromValue)));%0A        %7D%0A    %7D%0A%7D%0A

Create class to handle temperature conversions.