So here is my code.... i really need help with it. I am completely new to this and going through the book, I came up with this. I am trying to display the answer in celsius and farenheit. I want to enter a farenheit into the program and it comes out in celsius.
import javax.swing.*;
public class FahrenheitToCelsius
{
public static void main (string[] args)
{
double fahrenheit;
double celsius;
input = JOptionPane.showInputDialog
(null,"Temperature in Farenheit");
fahrenheit = Doube.parseDouble(input);
celsius = (fahrenheit -32)*(5/9)
JOptionPane.showMessageDialog
(null,"The Temperature in Celsius is" + celsius);
}
}