Re: ";" after if statement??



JS wrote:
What does it mean when a ";" is inserted after an if statement?

if (x == 2){
    System.out.println("x = 2");
};



nothing...whilst it is not illegal - it is useless. .