In my beginning Java Programming workbook there is an example of toggling between setting the checkbox enabled or disabled, but I'm not quite sure I get it. The instructor couldn't really explain it to me except to say that it is toggling because of the ! operator:
Can anyone explain this to me? What does the !checkbox.isEnabled() method return to checkbox.setEnabled that does the opposite of what is is now?