Is there a method similar to equals() that expresses \"not equal to\"?
equals()
An example of what I am trying to accomplish is below:
if (second
"Not equals" can be expressed with the "not" operator ! and the standard .equals.
!
.equals
if (a.equals(b)) // a equals b if (!a.equals(b)) // a not equal to b