Hi, I'm new to Java and was just practicing with the codes.
I've written the following:
class PWR { double a, ret; int e; double PWR(double a, int e) { this.a = a; this.e = e; for (e=e; e>0; e--) { ret = ret * a; } if (e==0) {return ret;} } }
I use netbeans to program with Java, and he gives me the following error:
"Missing Return Statement"
I hava a return statement so I don't understand what the problem is.
I hope that somebody can help me.