0
Q:

java not equal to

if(5 != 4) // != means "not equal to"
  	return true;
1
// Int version
int i = 2;
if (i != 3) {}

// String version
String s = "a";
if(!s.equals("b")) {}
2
String name = "John"; 
 
// prints true to standard system output. 
System.out.print(!name.equals("Alex")); 
0
if (!"success".equals(statusCheck))
0

New to Communities?

Join the community