Hi, I tried to write code to
test some of the Math methods(), but when I tried to compile, I get a "missing return statement double myMethod" from compiler. Please anyone help
class Testi {
double a = 90.7;
double b = myMethod();
public static void main(
String arg[]) {
Testi t = new Testi();
t.myMethod();
}
double myMethod(){
Math.ceil(a);
System.out.println(b);
}
}