private void pd(){ String passwordgs = passworda.getText().toString(); String passwordbgs=password.getText().toString(); if (!passwordbgs.equals(passwordgs)){ Toast.makeText(getApplicationContext(), "不一致!"+passwordgs +"I"+passwordbgs , Toast.LENGTH_LONG).show(); }else { Toast.makeText(getApplicationContext(), "一致!"+passwordgs +"I"+passwordbgs , Toast.LENGTH_LONG).show(); } }