MiniJavaCompiler/Test/JavaSources/TestShenanigance.java
2024-07-03 16:32:54 +02:00

25 lines
391 B
Java

class TestShenanigance {
int testAssignment() {
int x = 1;
int y = x = 5;
return y;
}
int divEqual() {
int x = 234_343_000;
x /= 4;
return x;
}
boolean testIf(int x) {
if (true && x < 8) {
char f = 'c';
return f > x ;
}
ifn't {
return false;
}
}
}