/ Published in: Java
Pretty cool overstatement...
Expand |
Embed | Plain Text
protected boolean invertbool(boolean bool) { if (bool) return false; else return true; }
Comments
Subscribe to comments
You need to login to post a comment.

you could also just do this
function whatever(bool) { return !bool; }
the !bool should invert the boolean value. So you shouldn't even need a separate method/function to do this.
This was intended to show the worst way to do it :D But thanks.