try this, just a re-arrange and helloworlds edit.
import java.util.Scanner;
public class TemperatureConverter{
public static void main(String[] args){
Scanner console = new Scanner(System.in);
System.out.println("Please press 1 to convert Fahrenheit to Celsius, or 2 to convert Celsius to Fahrenheit");
int choice = console.nextInt();
System.out.println("What is the temperature?");
double temperature = console.nextDouble();
double t = 0.0;
if (choice == 1){
t = ftoc(temperature);
}
else if (choice == 2){
t = ctof(temperature);
}
System.out.println("Your converted temperature is " + t );
}
//converts fahrenheit to celsius
public static double ftoc (double degreesF){
double degreesC = 5.0/9.0 * (degreesF - 32);
return degreesC;
}
//converts celsius to fahrenheit
public static double ctof (double degreesC){
double degreesF = 9.0/5.0 * (degreesC + 32);
return degreesF;
}
}