In a program, I needed an if
statement and by mistake, I put semicolon at the end of the statement. However, there were neither compile-time error nor run-time error. I tried to figure out what this code means but hopeless.
if (i == 10);
{
System.out.println("It is here");
break;
}
If you enlighten me on this topic, that will be appreciated.