if语句如果Hi有一条语句,大括号可以省略。如果是多条语句,大括号不可以省略。
int x =4; if(x ==4) System.out.print("我是4");
int x =4;
if(x ==4)
System.out.print("我是4");