if (getCheckEmailFromServer == true || getCheckNameFormServer == true || getCheckNumberFormServer == true); { Intent nextActivity = new Intent(this, GiftHomeActivity.class); startActivity(nextActivity); } else { if (getCheckEmailFromServer == false) { emailHint.setText("You enter wrong Email. Please, try again."); } else if (getCheckNameFormServer == false) { nameHint.setText("You enter wrong name"); } else if(getCheckNumberFormServer==false) { numberHint.setText("You enter wrong number"); } } } catch (IOException e) { e.printStackTrace(); } } } In this case, else is highlighted, and writes "else without if"
if (getCheckEmailFromServer == true || getCheckNameFormServer == true || getCheckNumberFormServer == true);You can simplify, and do not write == true for the future. - Silento