best way to do not equal check in java code example Example: java not equal to if(5 != 4) // != means "not equal to" return true;