Chaps, I am having some problems with a return statement in a function.
I have this situation:
public boolean isFine(){
for( int i = 0; i < myarray.length; i++ ){
for(int j = 0; j < myarray[i].length; j++ ){
if( myarray[i][j] == myEnumeration.FRIDAY ){
return false;
}
else{
return true;
}
}//end of column array
}//end of row array
}//end of isFine()
I am returning values to the caller using if statements. Now, the compiler is telling me that a return statement is missing, but in fact I have 2. Does it say that because it wants me to have a return statement further down, before the last set of brackets? If so how can I possibly do it?!
thanks