Java 中不需要,因为Java中有boolean类型。 当我们判断i == 1 时,如果写成了i = 1,是不会通过编译的。 当我们判断flag == true 时,我们只会写if (flag) 而不会写if ...
確定! 回上一頁