Both of your returns are in conditional statements. The compiler requires a guaranteed return value for all possible conditions.
Add a default return value at the end to cover the case of your other conditions not being satisfied.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
getLine has a guaranteed return even if the if() statement is false.
getRow() has two returns but one is in if() and the other in for(). You need a return in case those do not execute.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847