Home »
Code Examples »
Groovy Code Examples
Groovy - Logical Operators Code Example
The code for Logical Operators
class Example {
static void main(String[] args) {
boolean var1 = true;
boolean var2 = false;
boolean var3 = true;
println(var1&&var2);
println(var1&&var3);
println(var1||var3);
println(var1||var2);
println(!var1);
}
}
Code by IncludeHelp,
on August 7, 2022 07:07