I keep getting a return statement error for this section of code. Looks fine to me, maybe someone in here can help?
//It returns the index of the number specified by the parameter is
//located. If the number is not found, it returns -1.
private int indexOf(int searchingNum) {
for (int index = 0; index < count; index++)
if (numberArray[index] == searchingNum) {
return index;
} else
return -1;
}