Bom dia, pessoal! Minha resolução da conversão de temperatura:
public class Main {
public static void main(String[] args) {
double tempCelsius = 32;
int tempConvertidaEmFahrenheit = (int) ((tempCelsius * 1.8) + 32);
System.out.println(String.format("""
%.0fºC em Fahrenheit é %dºF.
""", tempCelsius, tempConvertidaEmFahrenheit));
}
}
Resultado: