String username;
String password;
if (username!="admin" && password!="software")
System.out.print("success");
else if (username!="admin" && password=="software")
System.out.print("failure");
guyz could you plzz explain when admin and password are both equal to their respective values i.e. admin and software than it prints success but if i say username is equal to admin and password is not equal to software it also prints success again
Moreover, i took input in username and password like this
password = Pass_input.getText();
username = Username_input.getText();
while Username_input and Pass_input are the JtextFields in java