An unreachable statement error

80 Views Asked by At

I don't know from where the error is coming "unreachable statemententer image description here"

1

There are 1 best solutions below

0
On

You have a return statement before if statement. If you return, how will your if statement be executed. Hence if become unreachable.

Remove this line:

return new String[0];