Please just my curiosity that could be used (code example see at line 38th(code edited))
Boolean bol = true;
Boolean bol1 = !bol;
my question are
- its proper way, or is there (any) possible lack, issue why to avoid to use
- is correct result is the same for boolean and Boolean
- is there another data type in Java, where is possible toggle with expression, logical value