0
To verify whether i had entered the correct password or not?
before submitting login button i need to know that i had entered the correct password or the wrong one
2 Answers
+ 28
//for netbeans java IDE âș
đ u can use .equals() method to verify password
if jpf1 is the variable name of jPasswordField1 , then
String psd=new String (jpf1.getPassword());
if (psd.equals ("hari"){
//statement (s)
}
+ 1
Thanks gaurav can u give me the full code in java