is there something wrong with this if statement i am trying to make a swing login system??? thanks :)
public void login()
{
String username = loginField.getText();
char[] password = loginPass.getPassword();
if (username.equals("test") && password.equals("test"))
{
System.out.println("logged in");
}
}