compiler-design-eth/javali_tests/HW4_nop90/Booleans/OkEquals2.javali

16 lines
205 B
Plaintext

// Test the equal/not equal operations, one of the types must be a subtype of the other
class Main {
void main() {
int a,b;
boolean c;
a = 8;
b = 6;
c = a==b;
if (!c){
write(5);}
}
}