If
statement should be in any function or method… You can not write if statement directly into your class….
Your if
statement does not contain any body…
So, take it into any function or method to solve syntex error.
2
solved If statement creates syntax errors – android