Please tell me how you can voice this condition if ()
if (name == null ? !name.equals(human.name) : human.name != null) return false; My guess is: If the name is empty, then if the name is not equal to human.name ... then the thought is lost. Otherwise, if name is not empty, then if human.name is not empty ... I don’t catch the same nonsense thought. Under which of the above and matching conditions return false ;?
NullPointerException, because of thename.equals- gil9redhuman.name = null, then there will also be an exception and it will workreturn false;? - Prapor Pr