Today, after half an hour of searching for a bug, I discovered that it is possible to put a semicolon after an if statement instead of code, like this:
if(a
look this:
int a,b,c = 0; if(a == b){ c =1; } System.out.print(c);//1
so, you can write like this:
if (a == b)c=1;
but,if this code is this:
int a,b,c=0; if (a != b){ } if (a == b ){ c =1; }
you can write like this:
if(a != b); if(a == b )c=1;
so,you will know if(a != b); do noting
if(a != b);