Originally Posted by
mary
Because you are printing the result of comparing i with j, and the result will be boolean
If you want that it prints 1 or 0 you have to write it
int i=0;
int j=10;
If(i==j){System.out.println(1);}else {System.out.println(0);}
I know th use of 'if'. But the question is that
is a pure integer expression. Why does'nt it give an intger value???