Name

!= (inequality)

Description

Determines if one expression is not equivalent to another.

Examples

  • int a = 22;
    int b = 23;
    if (a != b) {
      println("variable a is not equal to variable b");
    }
    

Syntax

  • value1 != value2

Parameters

  • value1int, float, char, byte, boolean
  • value2int, float, char, byte, boolean