JavaCompilerCore/resources/bytecode/javFiles/Op1.jav
Daniel Holle 7fb4824f8d
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Failing after 2m53s
Add modulo, fix #319
2024-04-12 15:40:22 +02:00

34 lines
455 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;
}
public mod() {
var a = 10;
var b = 2;
return a % b;
}
}