反转布尔值

把一个Boolean方法或变量攺变为相反的意义,也就是原来是true的变为false,原来是false的变为true。

操作步骤:

菜单栏: Refactor —> Invert Boolean