is not java code example
Example 1: not equal java
// Int version
int i = 2;
if (i != 3) {}
// String version
String s = "a";
if(!s.equals("b")) {}
Example 2: if not java
boolean state = false;
if (state != true) { //Boolean is false.
System.out.println("No");
} else { //Boolean is true
System.out.println("Yes");
}