// storing a boolean expression in a variable
boolean whether = x > 2;