Saturday, 14 September 2013

java - when else condition execute?

java - when else condition execute?

int x = 0;
if (x == x) {
System.out.println("Ok");
} else {
System.out.println("Not ok");
}
I want else condition to execute without change if, how come?

No comments:

Post a Comment