25 lines
391 B
Java
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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|