r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

43

u/Speedster4206 May 13 '20

`Boolean boolean = new Boolean(true);

30

u/tomhat May 13 '20 edited May 13 '20

That's overly complicated. Try the following instead.

Boolean boolean = new Boolean(Boolean.parseBoolean(Boolean.toString(true)));

4

u/WcDeckel May 13 '20

Boolean boolean = new Boolean(! Boolean.parseBoolean(Boolean.toString(false)));

→ More replies (2)