Daniel Holle
606ce8b82d
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 2m26s
28 lines
368 B
Java
28 lines
368 B
Java
import java.lang.Boolean;
|
|
import java.lang.Integer;
|
|
|
|
public class Op1 {
|
|
public not() {
|
|
var b = false;
|
|
var c = !b;
|
|
return c;
|
|
}
|
|
|
|
public or() {
|
|
var a = 10;
|
|
var b = 20;
|
|
return a | b;
|
|
}
|
|
|
|
public and() {
|
|
var a = 10;
|
|
var b = 20;
|
|
return a & b;
|
|
}
|
|
|
|
public xor() {
|
|
var a = 10;
|
|
var b = 20;
|
|
return a ^ b;
|
|
}
|
|
} |