Name

> (greater than)

Description

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

Examples

  • int a = 5;
    int b = 13;
    if (b > a) {
      println("variable b is larger the variable a");
    }
    

Syntax

  • value1 > value2

Parameters

  • value1int, float, char, or byte
  • value2int, float, char, or byte
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.