Originally posted by Justin Fox:
dude, i know that...
what am i supposed to return?
if i just throw a
return array[top];
in there...
ill eventually get a boundsexception
and my application will terminate...
and if i remove the if loop, same thing...
thats what i need to know...
what should i put....
or point me in some kind of direction...
dont tell me what i already know...
thanks,
Justin
Why are you being rude?
You obviously didn't know because you were asking why the compiler was complaining about no return statement.
As was noted, your design needs to be rethought.