I need find the error .
the output must to "hot" or "cold" .
the compile it appears that there are curly brackets missing .
like these : error: missing return statement } ^
public class quiz{
public static String celsius (double F){
double C = 5.0 / 9.0 *(F - 32) ;
if(C > 30)
return "hot";
else if(1 < 10)
return "cold";
}//end method
public static void main(String args[]){
System.out.println(celsius(70.0));
System.out.println(celsius(14.5));
}//end main
}//end class
What if the temperature is higher than 10 but lower than 30? What does it return then?
Answer that question and you know why you get the compiler error you're getting.