I am trying to match two field that is of password but its showing password do not match
else if (_passwordText.getText().toString().equals("") || _passwordText.length() < 4 || _passwordText.length() > 10) {
AlertDialog alertDialog = new AlertDialog.Builder(Register.this).create();
alertDialog.setTitle("oops!");
alertDialog.setMessage("Password field is empty");
alertDialog.show();
}
else if (_repasswordText.getText().toString().equals(_passwordText.getText().toString())) {
AlertDialog alertDialog = new AlertDialog.Builder(Register.this).create();
alertDialog.setTitle("oops!");
alertDialog.setMessage("Passwords do not match");
alertDialog.show();
}