Try this:
import java.util.Scanner;
public class homework4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double f, c;
f = in.nextDouble();
/*------------------*/
c = (5f / 9f) * (f - 32);
System.out.printf("The temprature is %f", c);
}
}