What is the opposite of equals?

Hi

Java-Newbie asking a simple question :-)

What is the opposite of equals?

Is there a way of checking for not equality?

example:
String a
String b
String c
String d

if (a.equals(b) && c.unequals(d)) {

Thanks
NanoramaAsked:
Who is Participating?
 
objectsCommented:
use the not operator !

if (a.equals(b) && !c.equals(d)) {
0
 
NanoramaAuthor Commented:
lol

Thanks!
0
 
objectsCommented:
no worries :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.