if(5 != 4) // != means "not equal to" return true;
// Int version int i = 2; if (i != 3) {} // String version String s = "a"; if(!s.equals("b")) {}
String name = "John"; // prints true to standard system output. System.out.print(!name.equals("Alex"));
if (!"success".equals(statusCheck))