判断两个密码框里的值是否相等
2008-01-05 09:50:06 来源:WEB开发网核心提示: jPassWordField1.getPassword().equals(jPasswordField2.getPassword()) 或者String s1=new String(repeat.getPassword());String s2=new String(password.getPassword(
jPassWordField1.getPassword().equals(jPasswordField2.getPassword())
或者
String s1=new String(repeat.getPassword());
String s2=new String(password.getPassword());
if(s1.compareTo(s2)==0)
return true;
else return false;
[]
更多精彩
赞助商链接