不是一行 而是一句.到分号截止.
比如
if(condition) A;B;
当condition为假时, 只有A不执行, B还是会执行的.
而写作
if(condition);C;
则这个if无效. C无论什么情况都会执行.