I don't know from where the error is coming "unreachable statemententer image description here"
You have a return statement before if statement. If you return, how will your if statement be executed. Hence if become unreachable.
return
if
Remove this line:
return new String[0];
You have a
returnstatement beforeifstatement. If you return, how will yourifstatement be executed. Henceifbecome unreachable.Remove this line: