I am trying to write a method that when invoked, changes a boolean variable to true, and when invoked again, changes the same variable to false, etc.
For example: ca
private boolean negate(boolean val) { return !val; }
I think that is what you are asking for??