Creo que asi es mucho mas sencillo
public class celsiusAFahrenheit { public static void main(String [] args){
int temperaturaCelsius = 25;
double celsius = (double)temperaturaCelsius;
double fahrenheit = (celsius * 1.8) + 32;
System.out.println(temperaturaCelsius + "grados celsius a fahrenheit son" + fahrenheit);
}
}