Hi,
In the program written by chitra as......
public class CompareTest {public static void main(
String[] args) {boolean b1 = false;int i1 = 2;int i2 = 3;
if (b1 = i1 == i2) {
System.out.println("true");}
else {
System.out.println("false");}
}
}
y should the expression be (b1 = i1 == i2). and y not (b1 == i1 == i2)?
thankz for ur reply