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?
 
objectsConnect With a Mentor Commented:
use the not operator !

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

Thanks!
0
 
objectsCommented:
no worries :)
0
All Courses

From novice to tech pro — start learning today.