MiniJavaCompiler/Test/JavaSources/TestShenanigance.java

25 lines
391 B
Java
Raw Normal View History

2024-07-03 14:32:54 +00:00
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;
}
}
}