Name

< (less than)

Description

Tests if the value on the left is smaller than the value on the right.

Examples

  • int a = 22;
    int b = 23;
    if (a < b) {
      println("variable a is less then variable b ");
    }
    

Syntax

  • value1 < value2

Parameters

  • value1int, float, char, or byte
  • value2int, float, char, or byte