char[] p1 = passwordField.getPassword();char[] p2 = passwordField_1.getPassword();String s1 = new String(p1);String s2 = new String(p2);s1.equals(s2)