vendredi 22 novembre 2019

How the symbol x is always displayed? [duplicate]

This question already has an answer here:

if(x>0);
{
System.out.println("x");
}

Normally;

if(x>0)
{
System.out.println("x");
}

with this x cannot be displayed. but when there is semicolon after the if statement x is displayed.

can you explain it?

Aucun commentaire:

Enregistrer un commentaire