In Java, that'd be
Code:
int a=1;
int b=2;
if(a == b) {
System.out.println("yes");
} else {
System.out.println("no");
}