If(flag) 与 if(!flag)

BooleanisMan = true / false ; spa   If(isMan)等价于if(isMan==true)样式 If(!isMan)等价于if(!isMan==true)background   由于只要是 if() 语句,只有()中的boolean为true时,才能执行if()语句下面的{},若是为false时,执行else下面{}; 因此 if(不管什么样子的boolean
相关文章
相关标签/搜索