java isnot code example Example: not equal java // Int version int i = 2; if (i != 3) {} // String version String s = "a"; if(!s.equals("b")) {}