MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/hefap9/val_is_a_boolean_value/fvsrc2u/?context=3
r/badcode • u/Bluebearsuper • Jun 23 '20
58 comments sorted by
View all comments
3
I think we can make this better:
public boolean isTrueP() { if (val == true) { val = true; else if (val == false) { val = false; } return val; }
3
u/Mr2-1782Man Jun 23 '20
I think we can make this better: